File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 7
7
/* Rotate Animations */
8
8
@import url(./ src/css/neptune_rotate.css);
9
9
10
+ /* Scaling Animations */
11
+ @import url ('./src/css/neptune_scale.css' );
10
12
11
13
12
14
: root {
Original file line number Diff line number Diff line change
1
+ /* Scale Up */
2
+ .nep-scale-up {
3
+ animation : nep-scale-up var (--nep-animation-duration ) var (--nep-animation-delay ) var (--nep-animation-direction ) var (--nep-animation-fillmode );
4
+ }
5
+
6
+ @keyframes nep-scale-up {
7
+ 0% {
8
+ opacity : 0 ;
9
+ transform : scale (0.3 );
10
+ }
11
+ 30% { opacity : 1 ;}
12
+ 98% { transform : scale (1.1 );}
13
+ 100% { transform : scale (1 );}
14
+ }
15
+
16
+ /* Scale Down */
17
+ .nep-scale-down {
18
+ animation : nep-scale-down var (--nep-animation-duration ) var (--nep-animation-delay ) var (--nep-animation-direction ) var (--nep-animation-fillmode );
19
+ }
20
+
21
+ @keyframes nep-scale-down {
22
+ 20% { transform : scale (1.3 );}
23
+ 100% { transform : scale (0 );}
24
+ }
Original file line number Diff line number Diff line change 16
16
import NeptuneAnimate from "../neptune-animations.js"
17
17
18
18
const myElement = document . getElementById ( "test" ) ;
19
- const neptuneAnimate = new NeptuneAnimate ( myElement , "nep-rotate-left-in " ) ;
19
+ const neptuneAnimate = new NeptuneAnimate ( myElement , "nep-scale-down " ) ;
20
20
21
21
neptuneAnimate . startAnimation ( ) ;
22
22
</ script >
You can’t perform that action at this time.
0 commit comments