background preloader

Parallax Content Slider with CSS3 and jQuery

Parallax Content Slider with CSS3 and jQuery
A simple parallax content slider with different animations for each slider element and a background parallax effect. View demo Download source Today we want to share a simple parallax content slider with you. Using CSS animations, we’ll control the animation of each single element in the slider and create a parallax effect by animating the background of the slider itself. The idea for this comes from the slider of the Kendo UI homepage, a framework for modern HTML UI. After we got some requests and questions about how to do something like that, we decided to recreate the effect. How it works The slider contains several slides and each one will have an h2 element, a paragraph, a link and a division with an image: The core of this slider is the animations for each one of the elements. .da-slide-fromright.da-slide-fromleft.da-slide-toright.da-slide-toleft Given these classes, we can control the animation of each element: Options The following options are available when calling the cslider plugin:

Dynamic PNG shadow position & opacity with jQuery - by Daniel Kurdoghlian | PushingPixels.at Below you can see the magic interesting part of my script: This is, what makes the correct positioning of the shadow <div>. Just assign this function to a dragging event (+ window-resize & load) and you have your dynamic positioning.

Related: