EXPERIMENTAL CSS3 ANIMATIONS FOR IMAGE TRANSITIONS

    Rating: ★★★★☆
    View: 191
    Download: 169
    Từ khóa:

    Today we want to share some experimental 3D image transitions with you that use CSS3 animations and jQuery. We’ll be using CSS3 3D Transforms for Webkit only. Check out the Photo Transitions at the Safari Technology Demos site, some of which we got inspired by.

    The images used in the demo are by Joanna Kustra.

    Please note that the 3D effects will only work in Webkit browsers. You can view a video of how the effects look here: Experimental CSS3 Animations for Image Transitions Video Demonstration

    HOW IT WORKS

    Given a set of images, we’ll add the first image to the wrapper with the class te-cover. With JavaScript we’ll control the transition classes given to the elements in the wrapperte-transition and which image will be shown. This is how the first example looks like:

    The main idea is to always show the regarding image using te-cover. When we start an animation by giving the respective animation class, the te-cover will get hidden while the animation runs. When the animation finishes, the te-cover element will be shown again, with the updated image.

    DEMOS

    Each demo will have a group of possible transitions that can be selected from the dropdown menu above the image.

    We hope you like our little experiment and find it inspiring and useful!

    loading Đang tải...

    template được ưa chuộng