Animation speed up

This commit is contained in:
2018-06-07 08:29:33 -07:00
parent 4a21052e4a
commit 842f764c96
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "react-animated-menus", "name": "react-animated-menus",
"version": "1.0.11", "version": "1.0.12",
"description": "React component that mounts three dot button that morphs into a menu by clicking on it.", "description": "React component that mounts three dot button that morphs into a menu by clicking on it.",
"main": "./lib/index.js", "main": "./lib/index.js",
"license": "MIT", "license": "MIT",

View File

@ -97,9 +97,9 @@ class App extends Component {
borderRadius: { borderRadius: {
value: 0, value: 0,
easing: "easeOutCubic", easing: "easeOutCubic",
duration: 1000 duration: 500
}, },
duration: 2000, duration: 1000,
backgroundColor: "rgb(255, 255, 255)" backgroundColor: "rgb(255, 255, 255)"
}) })
.add({ .add({
@ -110,7 +110,7 @@ class App extends Component {
return 400 + (i * 200); return 400 + (i * 200);
}, },
easing: 'easeInOutCubic', easing: 'easeInOutCubic',
offset: '-=1700' offset: '-=700'
}); });
} else { } else {
animation = anime.timeline(); animation = anime.timeline();
@ -140,7 +140,7 @@ class App extends Component {
scaleX: [1,0.1], scaleX: [1,0.1],
scaleY: [1,0.14], scaleY: [1,0.14],
borderRadius: "100%", borderRadius: "100%",
duration: 1000, duration: 700,
backgroundColor: this.getColor(), backgroundColor: this.getColor(),
easing: "easeInOutCubic", easing: "easeInOutCubic",
offset: '-=500' offset: '-=500'

View File

@ -66,7 +66,7 @@
color: rgb(60, 60, 60); color: rgb(60, 60, 60);
} }
.Menu_button:hover { .Menu_button:hover {
background-color: rgb(227, 227, 227); background-color: rgb(240, 240, 240);
padding-left: 10%; padding-left: 10%;
} }
.Menu_button:active { .Menu_button:active {