It’s an easy way to add some interactivity and maintain user interest. As the user hovers over a panel, the background image zooms in and pans along with any movements of the cursor. Here’s an effect we’re seeing quite a bit lately. See the Pen CSS background image stacking with fade and overlay by Rand Seay Background Zoom & Pan by Krz Szzz
COLORFUL WAVE FORM SPARKLING MOTION BACKGROUND CODE
The result is a very modern look that uses relatively little code (and no JS). Lastly, a parallax-style scrolling effect is added to the mix. Then a fade animation is implemented to introduce the image in a visually smooth manner. First, a full-width hero image has a color overlay added on top to create a different hue. There are a few things going on with this example.
See the Pen Zoom and Blur background Image by Zach Richard Fade-in Hero Image with Overlay by Rand Seay A little bit of jQuery changes the background-size property upon scroll to create the effect. This technique could be quite useful when you really want visitors to focus on the background image (like the header of a news article) and then allow for the easy reading of text on top. See the Pen Animated Background Gradient by Mario Klingemann Blur on Scroll by Zach Richard Using JavaScript, you can define gradient colors to match your palette. This animated gradient example is nice because it’s a more subtle effect.
If not done carefully, an animated background can distract from any content sitting on top of it. See the Pen Fullscreen CSS Background Image Slideshow by Kevin Lesht Animated Gradient by Mario Klingemann It makes for a much more lightweight slider than traditional JavaScript. Using a fairly simple bit of CSS, this background allows for a smooth transition between multiple images. See the Pen skew bg by Marcel Moving Pictures by Kevin Lesht This pure HTML/CSS solution makes it a cinch. It’s an effect that was incredibly easy to implement in print design and a pain to do on the web – until now. Skewed backgrounds are one of the hottest trends in web design. See the Pen GSAP Animate CSS background-position by Jonathan Marzullo Skewed by Marcel It’s done with the help of CSS transform and some JS. Reminiscent of side-scroll video games of the past, this technique features two distinct images – each scrolling in the opposite direction. See the Pen CSS background change on scroll by Giana Scrolling Animation by Jonathan Marzullo The use of CSS mix-blend-mode property allows for the change in hue, which is dependent upon the contents of the background. This background effect is so cool that the fixed element on top appears to change color as the user scrolls. Start Downloading Now! CSS Blend Mode Color Change by Giana