-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathanimation-js.htm
More file actions
54 lines (51 loc) · 2.8 KB
/
animation-js.htm
File metadata and controls
54 lines (51 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DataFormsJS Animation Framework Plugin Demo</title>
<link href="css/animation.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/dataformsjs@5/js/web-components/animation-service.css" rel="stylesheet" data-css-vars-ponyfill />
</head>
<body>
<section>
<div data-animate="show-with-delay" class="border-blue">
<div data-animate="show-with-delay-2" class="border-green">
<div data-animate="show-with-delay-3" class="border-red">
<div data-animate="show-with-delay-4" class="border-yellow">
<h1>DataFormsJS Animation Framework Plugin</h1>
<p>
This page provides a demo of using the DataFormsJS [animation] Framework Plugin.
The plugin allows for animation with the browsers Intersection Observer API.
The plugin does not provide built-in animations from JavaScript; rather it is
used with CSS defined in the app for animation. The page shows animations from the
[animation-service.css] file that can be used as a starting point for animations
and provides good examples for learning.
</p>
<p>
The Intersection Observer API allows for minimal JavaScript code and
when used with CSS it allows for high performance and efficient animations.
</p>
<p>
A <animation-service> Web Component also exists and can be used with
the Framework allowing for animation on any page with less JavaScript code.
</p>
</div>
</div>
</div>
</div>
</section>
<section>
<div data-animate="scale" class="large">
<h2>Scale Demo</h2>
</div>
</section>
<section>
<div data-animate="move-from-left"><h2>Move from Left</h2></div>
<div data-animate="move-from-bottom"><h2>Move from Bottom</h2></div>
<div data-animate="move-from-right"><h2>Move from Right</h2></div>
</section>
<script src="https://cdn.jsdelivr.net/npm/dataformsjs@5/js/DataFormsJS.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dataformsjs@5/js/plugins/animation.min.js"></script>
</body>
</html>