April 23, 201412 yr I've noticed recently that there is quite a trend on "moving objects". By this, I mean when scrolling down a webpage, some items fly in from all sorts of positions only when the container is visible. I was just wondering if there is a specific term for this as I would like to learn how to achieve this and implement this effect into my own personal website. Regards, Patrick
April 23, 201412 yr Usually done with javascript, eg http://johnpolacek.github.io/superscrollorama/ http://mynameismatthieu.com/WOW/
April 23, 201412 yr This blueprint on Codrops may be what you are looking for. It uses JavaScript to animate elements of the page as they enter the viewport.
April 23, 201412 yr Also this jQuery plugin is good to determine if an element is visible or not on the screen / within the viewport https://github.com/teamdf/jquery-visible hth
April 23, 201412 yr With skrollr you do not have to use js, just add data attributes to your tags https://github.com/Prinzhorn/skrollr
May 9, 201412 yr There is also great and easy to use JS http://mynameismatthieu.com/WOW/ (based on http://daneden.github.io/animate.css/ )
May 9, 201412 yr Do NOT use flash! A basic bit of jQuery will do the trick. First select the dom element in question and grab its offset: $('.item').offset ().top; Then you want to get the position Of the window: $(window).scrollTop (); Also get the height of the window $ (window).height(); You can use these to determine if the element is in the viewport then add a class and use css to animate. The whole function should be repeatedly called in the window scroll event.
Create an account or sign in to comment