Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 27, 2012 04:15 pm GMT

Transitions Only After Page Load

I've you've ever used CSS transitions on structural elements on your page, you may have noticed a case where you see that transition happen when the page loads and is laying itself out.

Quick video of the issue I was having:

To fix it, I just added a class of "preload" to the body element.

<body class="preload">

Then ensure no transitions would happen:

.preload * { -webkit-transition: none !important; -moz-transition: none !important; -ms-transition: none !important; -o-transition: none !important;}

Then …

Transitions Only After Page Load is a post from CSS-Tricks


Original Link: http://css-tricks.com/transitions-only-after-page-load/

Share this article:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks