background preloader

Animations-transitions

Facebook Twitter

Page Transitions with CSS3. In the last few years, we've seen a lot of single page websites lying around the internet, most of them using JavaScript for some transitions effect.

Page Transitions with CSS3

Well, now I'm gonna teach you how you can have your own, but instead I'll be using CSS Transitions and the :target property to do all the magic. View demo Download source In the last few years, we’ve seen a lot of single page websites lying around the internet, most of them using JavaScript for some transitions effect. Well, now I’m gonna teach you how you can have your own, but instead I’ll be using CSS Transitions and the :target property to do all the magic.

The Dribbble shots used in the demos are by Matt Kaufenberg. Markup The HTML will contain five main divisions: a header and the four content sections. Original Hover Effects with CSS3. The power of CSS3 is enormous and in this tutorial we will see how to exploit it in a very creative way.

Original Hover Effects with CSS3

We are going to create some thumbnail hover effects with CSS3 transitions. On hover over a thumbnail, we will reveal some description of the thumbnail, using a different style in each example. View demo Download source Please note that this will only work properly in modern browsers that support the CSS3 properties in use. The Markup The structure of markup is very simple and intuitive. Inside the view insert an element with the class mask that will be responsible for our effects driven by CSS3 and inside it we will put a title, description and a link to the full image. <div class="view"><img src="image.gif" /><div class="mask"><h2>Title</h2><p>Your Text</p><a href="#" class="info">Read More</a></div></div> The CSS After creating our markup we’re going to set our style.

CSS3 Hover Effects. Hello guys, this time I will show you other five examples of hover effects using different CSS properties compared to the old tutorial posted on Codrops.

CSS3 Hover Effects

In summary, we seek the same method but we will act especially using the border property, as we shall see later that allows us to create very particular effects. Please note that this will only work properly in modern browsers that support the CSS3 properties in use. HTML Markup This simple structure allows us to make these effects. As you can see in the code below we create a parent class view, and the contents inside. <div class="view"><img src="images/1.jpg" /><div class="mask"></div><div class="content"><a href="#" class="info" title="Full Image">Full Image</a></div></div> Here you will set the basic properties of our tutorial. 1 Example Add the special class effect to the element with the class view for this effect.

Go to View the Example 2 Example In this example we are going to operate on the parameters of the border property. Animated Buttons using CSS3 Transitions and Transforms. CSS3 In Transition. Uncharted Territory With the addition of the CSS3 transition property comes a lot of uncharted territory.

CSS3 In Transition

Never before has it been so easy to bring animation into a usable, standards-based browsing environment. Determining how often and to what degree one should use animation on a web build can be tricky. As we evaluate how to implement animations from project to project, we’ll need to carefully consider how it might affect user experience. Here are a few observations I’ve made from the field. Consider the Psychology of Motion Motion demands attention. I’d say it’s a general rule that the more content you have on a page, the less motion you can get away with using. Linking & Navigation I really enjoy adding the transition property to make links & menu bars fade in and out, but I have to be careful.

Notice how with the first row, you can make it all the way across the bar with no hover state clearly appearing. It’s all been done before... ...with Flash. Animate.css - a bunch of plug-and-play CSS animations.