Forum Discussion
Bounce animation in Storyline with GSAP
You can make amazing animations in Storyline. I started taking small steps for GSAP. It looks exciting. See this for example.
Using different animations in e-Learning is one of the ways to attract attention and increase the quality of learning.
As a designer, I use the classic animations in the storyline, but sometimes it is necessary to go beyond the limits and increase the fun. I try to try different things rather than standard courses. Thanks to Rıdvan Sağlam, I realized that GSAP also enables this and I started to implement it. JavaScript knowledge is required for this, I got support from my teammate Taylan Mun.
I want to show bounce animation using GSAP library in stoyline. We can't make those beautiful animations that we imagine in Storyline or that we see in many places, but thanks to GSAP, I was able to do it.
Let's see how it happened;
First, I add 4 icons and save their accessibility name as "box".
Then I add a trigger and I'll start writing the codes in it. The important point here is JavaScript knowledge, if we do not define the codes correctly, it will not work.
Now let's write the codes. You can also get the codes from the GSAP library.
Link: https://greensock.com/docs/
These are all our codes. Storyline uses the GSAP library, these codes also work in the offline system. I got these codes from the GSAP library and it worked after I made my definitions. We can include many things in our courses this way.
var allObject = document.querySelectorAll("[data-acc-text='box']");
This code is used to introduce the objects in the slide, if this code does not exist, our trigger does not know what to apply this animation to.
The last stage; I export our course as a web.
All Codes;
var allObject = document.querySelectorAll("[data-acc-text='box']");
gsap.from(allObject, {
duration: 3,
scale: 0.5,
opacity: 0,
delay: 0.5,
stagger: 0.2,
ease: "elastic",
force3D: true
});
- YukaSato-9f6fd5Community Member
This was so cool and fairly easy to learn! Love the effect! Thank you for sharing :)
- JoeBrewer-5f583Community Member
This is SO cool! I've been wanting this type of animation in Storyline for ages. I hope one day the devs at Storyline will make this native. Great work!
- TeresaVanderposCommunity Member
This is great Merv, thanks for sharing. question for you, are the popups shapes that float up or did you do it with layers? Just curious...it looks nice and clean.
- MerveSatmazCommunity Member
Thank you Teresa, I used layers
- AdrianHarveyCommunity Member
Great stuff Merve, thanks so much!
- AyseSahin-3327fCommunity Member
Thank you Merve and Math, it's wonderful ! I can't wait to use it in my e-learnings <3
- MerveSatmazCommunity Member
You're welcome, enjoy it Ayse :)
- YaseminEr-84c41Community Member
Thanks a lot for sharing this instructive content.
- MathNotermans-9Community Member
For more examples on the possibilities with GSAP do search the forum with 'GSAP'. I have tons of examples and info on it.
- MerveSatmazCommunity Member
Thank you, Math. I'll look into it.
- SarahHodgeFormer Staff
That animation is so slick! Thanks for sharing the example and your process, Merve!
- EzgiAkkayaCommunity Member
Wow thanks for the example. I would like to try it as soon as possible. If you have different examples about this, we would like to see them too.
- GlsmYldzCommunity Member
So cool.