scrollmagic

Next.js (React) & ScrollMagic

空扰寡人 提交于 2019-12-22 03:36:46
问题 I would like to implement an animation to fade sections, like in this example, into my application. Therefore I've had a look at fullPage.js. However, since I need to integrate it into a Next.js React app with server-side rendering I can't use it since it relays on jQuery, which doesn't support SSR. Therefore I've tried my luck with ScrollMagic, which doesn't relay on jQuery. But it also doesn't support SSR (needs window ), therefore I've initialized it in the componentDidMount() method and

Website with ScrollMagic pins

帅比萌擦擦* 提交于 2019-12-22 00:15:50
问题 Does anybody know how can I use ScrollMagic to have an effect like here http://appliancetecltd.com/. I want something like that, but I need more movement something like this See Image, but I don't know how to use it, there is no much documentation about it's usage, can anybody help me? I have some code here: new ScrollScene({ triggerElement: "span.pin-trigger", duration: 500, offset: 650 }); var moveleft = TweenMax.to("#pin-inner", 1, { left: leftpinpx, ease: Sine.easeInOut }); new

Animating shape using snap.svg and scrollmagic

爷,独闯天下 提交于 2019-12-14 03:17:37
问题 I am trying to create a code to animate my header as the user scrolls. I have managed to create the animations I want using 2 different plugins: snap.svg and scrollmagic. I'm new to both of these so please excuse my noobiness. Here it is on CodePen: http://codepen.io/anon/pen/dYbPXe /* Animation 1 */ var speed = 250, easing = mina.easeinout; [].slice.call ( document.querySelectorAll( '.header > a' ) ).forEach( function( el ) { var s = Snap( el.querySelector( 'svg' ) ), path = s.select( 'path'

Pins are jumping when scrolling on full height parallax page on iOS Safari with ScrollMagic

纵然是瞬间 提交于 2019-12-12 20:28:22
问题 I have a parallax page with full height sections. Safari, Chrome and IE on Desktop the page works perfectly. But when viewed on a iOS device in Safari the next start pin is jumping a fixed size upwards. I am not quite sure how to debug this problem hence its behaviour on the smartphone. Two screenshots have been included to show how the pin is displaced from its original position. I have cut out a minimal part of the code which may be inadequate, but i am more than happy to fill this in if

Next.js (React) & ScrollMagic

拈花ヽ惹草 提交于 2019-12-05 00:01:21
I would like to implement an animation to fade sections, like in this example , into my application. Therefore I've had a look at fullPage.js. However, since I need to integrate it into a Next.js React app with server-side rendering I can't use it since it relays on jQuery, which doesn't support SSR. Therefore I've tried my luck with ScrollMagic , which doesn't relay on jQuery. But it also doesn't support SSR (needs window ), therefore I've initialized it in the componentDidMount() method and even loaded it there (like it's recommended here ). It currently works initially, but as soon as you

Website with ScrollMagic pins

元气小坏坏 提交于 2019-12-04 21:40:19
Does anybody know how can I use ScrollMagic to have an effect like here http://appliancetecltd.com/ . I want something like that, but I need more movement something like this See Image , but I don't know how to use it, there is no much documentation about it's usage, can anybody help me? I have some code here: new ScrollScene({ triggerElement: "span.pin-trigger", duration: 500, offset: 650 }); var moveleft = TweenMax.to("#pin-inner", 1, { left: leftpinpx, ease: Sine.easeInOut }); new ScrollScene({ triggerElement: "span.pin-trigger", duration: 950 }).addTo(controller).setPin("#pin-outer")

How To Use ScrollMagic with GSAP and Webpack

南楼画角 提交于 2019-12-04 17:48:30
问题 In order to use ScrollMagic with GSAP, you need to load the animation.gsap.js plugin. With Webpack you would do something like this to accomplish that (assuming you use the CommonJS syntax and installed everything with npm): var TweenMax = require('gsap'); var ScrollMagic = require('scrollmagic'); require('ScrollMagicGSAP'); To make sure that this actually works, you have to add an alias to your Webpack configuration, so that Webpack knows where the plugin lives. resolve: { alias: {

How To Use ScrollMagic with GSAP and Webpack

主宰稳场 提交于 2019-12-03 11:46:53
In order to use ScrollMagic with GSAP , you need to load the animation.gsap.js plugin. With Webpack you would do something like this to accomplish that (assuming you use the CommonJS syntax and installed everything with npm): var TweenMax = require('gsap'); var ScrollMagic = require('scrollmagic'); require('ScrollMagicGSAP'); To make sure that this actually works, you have to add an alias to your Webpack configuration, so that Webpack knows where the plugin lives. resolve: { alias: { 'ScrollMagicGSAP': 'scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap' } } Unfortunately ,

animated scrolling script prevents local anchor positions to be accessed from external links

余生颓废 提交于 2019-11-28 13:39:19
I have a onepager site where I use scrollmagic plus all its necessary plugins/libraries (and jQuery) for different effects where animation, pinning, fading processes etc. are triggered by scroll positions. I also use it for animated scrolling to the anchor points on the page (from the menu and from other local links) - see the according part of the script below. The problem is that this script suppresses the default behaviour of "jumping" directly to an anchorpoint when a local link is clicked, and apparently also when the page is accessed from outside via a direct link or bookmark with an

animated scrolling script prevents local anchor positions to be accessed from external links

我是研究僧i 提交于 2019-11-27 07:49:12
问题 I have a onepager site where I use scrollmagic plus all its necessary plugins/libraries (and jQuery) for different effects where animation, pinning, fading processes etc. are triggered by scroll positions. I also use it for animated scrolling to the anchor points on the page (from the menu and from other local links) - see the according part of the script below. The problem is that this script suppresses the default behaviour of "jumping" directly to an anchorpoint when a local link is