Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

make animation more flowing #16

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion swinging-cat-rx/dist/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19326,7 +19326,7 @@ var styles = {
width: '100%',
height: '100%',
transitionTimingFunction: theme.easing,
transition: '0.9s',
transition: '0.8s',
transform: (0, _animation.doAnimation$)((0, _animation.animationLoader$)(theme.duration)).map(function ($val) {
return (0, _animation.translateY)((0, _animation.getPercentValue)(animationValues, $val));
})
Expand All @@ -19339,6 +19339,7 @@ var styles = {
height: '5rem',
transformOrigin: 'center -20rem',
transitionTimingFunction: theme.easing,
transition: '0.1s',
transform: (0, _animation.swingAnimation$)().delay(100),
'&:before': {
content: '""',
Expand All @@ -19355,6 +19356,7 @@ var styles = {
left: 'calc(50% - 45px)',
width: 90,
height: 130,
transition: '0.1s',
transform: (0, _animation.swingAnimation$)(-1),
transformOrigin: 'top center'
},
Expand All @@ -19364,6 +19366,7 @@ var styles = {
left: 0,
width: '100%',
height: '100%',
transition: '0.1s',
transform: (0, _animation.swingAnimation$)().delay(150),
transformOrigin: 'top center'
}
Expand Down
5 changes: 4 additions & 1 deletion swinging-cat-rx/src/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const styles = {
width: '100%',
height: '100%',
transitionTimingFunction: theme.easing,
transition: '0.9s',
transition: '0.8s',
transform: doAnimation$(animationLoader$(theme.duration)).map($val =>
translateY(getPercentValue(animationValues, $val))
)
Expand All @@ -44,6 +44,7 @@ const styles = {
height: '5rem',
transformOrigin: 'center -20rem',
transitionTimingFunction: theme.easing,
transition: '0.1s',
transform: swingAnimation$().delay(100),
'&:before': {
content: '""',
Expand All @@ -60,6 +61,7 @@ const styles = {
left: 'calc(50% - 45px)',
width: 90,
height: 130,
transition: '0.1s',
transform: swingAnimation$(-1),
transformOrigin: 'top center'
},
Expand All @@ -69,6 +71,7 @@ const styles = {
left: 0,
width: '100%',
height: '100%',
transition: '0.1s',
transform: swingAnimation$().delay(150),
transformOrigin: 'top center'
}
Expand Down