Block Reveal Effects

Ideas for revealing content in a schematic box look as seen around the Web lately. The effect first shows a decorative block element drawn and when it starts to decrease its size, it uncovers some content underneath.

From our sponsor: Supercharge your marketing across design, automations, analytics, and more, using our marketing smarts.

Today we’d like to share a couple of ideas for a kind of block reveal effect that has been used in some designs recently. The main idea is to reveal content in a schematic box look. The effect first shows a decorative block element being drawn and when it starts to decrease its size, it uncovers some content underneath.

The effect is inspired by some animations used in a couple of really nice websites (and a Dribbble shot):

There are of course many more examples out there; these are just a few that we’ve discovered lately and got inspired by.


Attention: We are using flexbox and viewport units, which might not be supported in older browsers, especially IE. For the effect itself we use 3D Transforms, so only modern browsers here.

Please note that the demos are optimized for desktop view.


Have a look at all the demos and browse the HTML files to see how the effect is implemented. All demos show some different possibilities. The last demo shows how a piece can be left uncovered to show then some content on top.

References and Credits

Browser Support:
  • ChromeSupported
  • FirefoxSupported
  • Internet ExplorerSupported from version E
  • SafariSupported
  • OperaSupported

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.

CSS Reference

Learn about all important CSS properties from the basics with our extensive and easy-to-read CSS Reference.

It doesn't matter if you are a beginner or intermediate, start learning CSS now.

Feedback 32

Comments are closed.
  1. Nice, only noticed it doesn’t show the blocks on native mobile android stock browser (not using chrome because it sucks battery).

    • Well, I think that her code is more reusable.
      For example it can adapt to any components by copying and pasting any html content and applies the effect. same thing for the effect options. each animation can be customized easily.
      IMHO It would be a bit messy in full css.

      @locotay nice demo ! 😀

  2. Love your stuff. I’m getting a lot of traffic to the scrollmonitor from this post.

    Check out scrollmonitor-parallax, it would let you make the box effects come in and out at the speed of scrolling. The docs aren’t great yet, but there should be enough info there to get it working.

  3. I usually never comment on these, but this is so good! I’ve been waiting for that one, thank you so much!
    Keep up the good work Mary Lou, I’m a designer but over the years you gave me the motivation and assets to learn code.

  4. Manoela: Thanks for the nice X-mas gift and all your beautiful contributions through out the year(s). Hope you get more and more inspirations in the years to come.

    I made this thing work. I could only make the on-load, modal and split screen make it work. Even for those the content loads first and is visible then those two blobs load and then they run away.

  5. Nice nice nice 🙂 How would you do this if you have set a background image in CSS. Or a background color..?

  6. AWESOME WORK. Has anyone successfully made the menu sticky?
    I’ve tried position: fixed; on almost everything, and either the icon becomes unclickable or it simply doesn’t work.