satori83 — 2013-07-27T01:54:24-04:00 — #1
I came across this site, https://mixpanel.com/ and I am in love with every aspect. Its so clean and nicely animated, but Im not sure how they trigger the animations! The first one is how the 2nd section slowly slides up over the top section when you start scrolling. Then there are other transitions I can see clearly in the css, but how do you set the trigger? Is this in css also or js?
paulob — 2013-07-27T14:30:35-04:00 — #2
The parallax scrolling technique is explained here and uses a small snippet of JS to change the speed of the backgrounds as they scroll creating a parallax effect.
The boxes in the middle are just CSS transitions which are triggered on hover.
The jumping images at the bottom are done with jquery where the margin-top is manipulated on hover (although this effect could be done somwhat similarly in css only).
satori83 — 2013-07-28T14:58:07-04:00 — #3
Thanks Paul, your the man! That Parallax effect is exactly what I was looking for. One more question with regards to that site, this page https://mixpanel.com/segmentation/ about half way down theres a section that says "A simple way to answer complex questions." and the image gets triggered to reveal the other image. I guess thats JS to dynamically change the image widths depending on some kind of "Y" axis variable?
paulob — 2013-07-29T06:27:00-04:00 — #4
Yes as the window scrolls the left position of one image is adjusted to move over depending on how far the window has scrolled.
The images are absolutely placed on top of each other and a third separator image is also placed in the middle and both the middle image and the left image are adjusted as the window is scrolled.
JS isn't my thing but I managed to do something similar with the help of some jquery.
The code is all in the head and is pretty straight forward so you should be able to follow.
satori83 — 2013-07-30T17:05:41-04:00 — #5
Yeah you pretty much duplicated it! Thats awesome... thanks for showing me
system — 2014-10-08T00:38:21-04:00 — #6
This topic is now closed. New replies are no longer allowed.