Skip to content
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

Multiple animations #69

Closed
quantumleap33 opened this issue Dec 22, 2020 · 2 comments
Closed

Multiple animations #69

quantumleap33 opened this issue Dec 22, 2020 · 2 comments

Comments

@quantumleap33
Copy link

quantumleap33 commented Dec 22, 2020

Is there a way to apply multiple data-sal animations? fade slide-right, for example.

@mciastek
Copy link
Owner

No, there's not support for that. If you want to make a custom animation, by combining fade and slide-right, you can define your own animation class and use an empty data-sal attribute to trigger animation. For example:

<div data-sal class="custom-animation"></div>
.custom-animation {
  // default styles
}

.custom-animation.sal-animate {
  // styles for animation
}

@ghost
Copy link

ghost commented Jan 28, 2021

Please add this example in docs, it might be helpful to others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants