You added a weak example to the documentation IMO. The most often cases are operations on a Scene. I deal with it because I know ScrollMagic, but if someone started the adventure with your package, he would have a small problem.
[example]
mounted() {
//Declare Scene
let scene = this.$scrollmagic.scene({
//ID of element where animation starts
triggerElement: "#trigger2",
//{0,0.5,1} - animations starts from {top,center,end} of window
triggerHook:0.5,
//Duration of animation
duration: 300})
//Declaration of animation and attaching to element
.setTween("#animate2", {borderTop: "30px solid white", backgroundColor: "blue", scale: 0.7}) // the tween durtion can be omitted and defaults to 1
// Helpful tags for orientation on the screen
.addIndicators({name: "2 (duration: 300)"})
//Add Scene to controller
this.$scrollmagic.addScene(scene);
}
hey!
It's pretty nice package.
[suggestion]
You added a weak example to the documentation IMO. The most often cases are operations on a Scene. I deal with it because I know ScrollMagic, but if someone started the adventure with your package, he would have a small problem.
[example]