Inspiration for Article Intro Effects

Some inspiration for effects applied to title headers of articles with a fullscreen image. The idea is to show some creative transition when continuing to the article body.

From our sponsor: Ship fast and never break a thing with Shortcut (formerly


Today we want to share some inspiration for article intro effects with you. You have surely seen some interesting article headers, usually containing a fullscreen image, that have some sort of intro effect, i.e. where some creative transition happens when scrolling or when clicking on a button to continue. We wanted to explore the effect possibilities with fullscreen images and making something happen when continuing to the article body. There are many potentially cool effects and today we want to share just a couple of ideas with you.

One really nice effect that we tried to imitate, is the one seen on Jam3 when choosing a project. There, a fullscreen video is being animated to a narrow bar while the content slides in.

Most of the effects we tried are highly experimental; animating large images can become a bit sluggish, also because a couple of transitions happening at the same time. The effect gets triggered when scrolling begins or when the button is clicked.

Note that hijacking the scroll is really not a great thing to do, so restricting it to a really short period is essential when deciding to use such an invasive method. We are using it here because of demo purposes only, but please keep in mind that it’s not an elaborate solution at all. We are not throttling the scroll handler, something you should definitely do in case you want to use something like this on scroll. Note that the effects can be applied when clicking a button, also. Or you could use something like parallax scrolling for a gradual effect.

The images in the demos are from amazing Unsplash, a fantastic place to find high-quality public domain photos.

The first effect pushes the image to the top together with the title, and a new title element slides in with the content.


The second demo shows the effect that fades out the image at the bottom and fades in the resting content. We do this by using a pseudo element with a linear gradient.


The third effect slices the main image into two where the first half moves up and the second one slides down, giving space for the title to enlarge.


The forth effect cuts away the image and pushes the title to the side.


The fifth effect is similar to the previous one but here we fix the image to the side and allow the content to flow on the right hand side.


The next demo moves the image up and reveals a grid where the current main image will scale up into the grid. This could be a great idea for showing related posts right in the header.


The last effect is an attempt to imitate the cool effect seen on Jam3: the fullscreen image becomes a top bar and the content slides in.


We really hope you enjoyed these effects and get inspired!

Tagged with:

Mary Lou

ML is a freelance web designer and developer with a passion for interaction design. She studied Cognitive Science and Computational Logic and has a weakness for the smell of freshly ground peppercorns.

Stay up to date with the latest web design and development news and relevant updates from Codrops.

Feedback 131

Comments are closed.
  1. Hi Mary Lou, I really like all of your work, it is truly awesome 🙂 I have a question. I noticed that in demo 2 you added a css gradient over an html image, which is what i’m trying to do for my site, but i’m not sure how to go about it and i don’t quite follow what you did here. So if I wanted to simply add a css gradient over an html image on a page, how should i do that?

  2. Hi Mary Lou, thank you so much for all your contributions. That’s amazing!!
    I just have a question. In demo 1 do you have an advice for how to make responsive the background image ?
    Thanks a lot again!

  3. Hi,
    Writing to ask if anyone managed to fix the broken effect of Demo-2 (Fade-out) on Internet Explorer. I’ve built an entire website for a client based on that effect and only just today noticed it’s broken on -guess what- IE.

    Reading through the comments, I’ve noticed a Velocity JS repo, but the effect displayed there is far from what I have now.
    Thanks guys, and sorry for the inconvenience.

    • Same problem here, I’ve found that all hell break loose at IE 8 and earlier, hope this helps, In the meantime I’ll also be working on a solution.
      This is the error “Object doesn’t support this property or method”,
      it starts to fail at this line window.addEventListener( ‘scroll’, scrollPage );

    • I’ve managed to fix the Fade-out effect in IE 10. Just add this extra rule somewhere after all your other css.

      .bg-img img
      position: relative;

      The position if “fixed” by default.
      Make sure it’s taken into account, just add “!important” otherwise.

  4. Hey!
    how can I add a video instead of image in the background of first page of ‘PUSH’ effect of this template?

  5. hi… awesome work ..
    the 5th effect , fixed side does not work in mozilla. The main content does not appear. Has any one else faced the same problem . ?? Has anyone found a solution for it ? plz can anyone help me ??

  6. Hi,

    I tried to recreate the functionality and on Codepen it worked like a charm, but every time I try to implement it on my website, I keep getting “Uncaught TypeError: Cannot read property ‘querySelector’ of null”. I believe I tried all the solutions that came to my mind – disabling jQuery, changing the order of loading scripts, adding the actual button (even though it works all fine without the button in my pen)… It just keeps returning the error in line trigger = container.querySelector( ‘button.trigger’ ); no matter what I do. Anyone has any other ideas?

    Obviously, other than this being completely my fault, I assume, I’d just like the say that I absolutely adore the effects – as much as plenty of other things on codrops.
    Thanks a lot for all the stuff you post here 🙂

  7. Love these effects; anyone know how well they work for users who may require accessibility adaptions? I’m a great believer in brand and accessibility working together so any info on how well these work on different browsers would be great. I’ll be testing some of these with a view to accessibility and can feedback if useful.

  8. Bug in Fixed Side page with Firefox 35.0.1 and 37.0a2.

    When I scroll down I see Title not the content text i.e.: .content > div:not(.title) p.

    .bg-img { ... /* note : -moz-backface-visibility: exists, but do nothing on bug */ -webkit-backface-visibility: hidden; backface-visibility: hidden; z-index: -1; /* ++ : work on firefox and don't bug others */ }

    • Thank you Fabrice for the fix. that same fix works on I.E. as well.
      Asn thank you MAry Lou for all your amazing work.

  9. When boostrap is css is added, the “Push” effect container is offset to right. By adding “left:0” on .intro-effect-push .header the problem is solved. You might want to update.

  10. These effects are really beautiful !

    I’d like to implement the forth effect into joomla 3 articles …
    Googled and tried it for a while – but without success …

    What I did:
    – copied the package into the website’s root within the mamp-pro folder.
    – changed all the path-lines concerning .css and .js from the demo4.html file.
    – copied the source-code from demo4.html into a) an article b) an custom html module using ck-editor.

    Could you please give me a hint or a knowledge-source how to do that?

    Really appreciate any tip very much!

    Thanks in advance,

  11. Hi, i’m using push effect. Anyone know how to remove the effect in mobile ?

  12. Does anyone know how to make it scroll down a specific amount of pixels? Right now it is only going down 250px when you first scroll down. Is there a way to change this to say 500px?

  13. Having problem in responsive [Demo 3]
    .intro-effect-sliced .bg-img:last-child not showing in responsive.

  14. Thanks for the nice effects…
    I was Wondering how can i change the title H1 position to relative instead of absolute without changing the position…
    the absolute positioning for long titles does not work and some areas of title will not be shown.

  15. Beautiful work just wondering did anyone come up with a fix for the glitch with safari?

  16. Hello everyone! How can I see all your guys responses? I see some of you have 2, 8- 24 responses on your questions, but I can’t see them.