-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I control a item with two different easing? #47
Comments
@alonprince There are ways to use the different selector as shown below. const animate = new Scene({
'.hand-img': {
0: {
top: 830 * 0.005 + 'rem'
},
0.8: {
top: 950 * 0.005 + 'rem'
},
2: {
top: 950 * 0.005 + 'rem'
},
options: {
easing: 'ease-in',
},
},
'img.hand-img': {
0: {
left: 500 * 0.005 + 'rem'
},
0.8: {
left: 620 * 0.005 + 'rem'
},
2: {
left: 620 * 0.005 + 'rem'
},
options: {
easing: 'ease-out',
},
},
}, {
selector: true,
iterationCount: 'infinite',
});
animate.play(); |
Thanks for your helping! It works! |
Hi, i am trying to achieve the same but can't make it work. here is my code: const Vorhang = new Scene({
'#vorhangHeader.zu .elementor-container': {
0: {
"min-height": headerHeight + 'px'
},
0.3: {
"min-height": '100vh'
},
options: {
easying: 'cubic-bezier(.83,.03,.24,.65)'
},
},
'#vorhangHeader.auf .elementor-container': {
0: {
"min-height": '100vh'
},
2: {
"min-height": headerHeight + 'px'
},
options: {
delay: 2,
easying: 'cubic-bezier(.33,.01,0,.99)'
},
}
}, {
selector: true,
});
Vorhang.playCSS(); can someone please tell me what i am doing wrong? edit: here is a (not) working example: http://wordpress.p564942.webspaceconfig.de/ |
I'm sorry. If you use Would you like to just |
i just did that, but it doesn't work either. |
I want to move an item in an arc. So I should control the 'top' to be moved by ease-in, the 'left' to be moved by ease-out. I have no idea about how to control an item with two different easing type. Is there a simple way to do this?
Here is my code.
The text was updated successfully, but these errors were encountered: