Results 1 to 2 of 2

Thread: Css 3-d flip

  1. #1
    Join Date
    Jun 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Css 3-d flip

    How to flip div using CSS 3-D transformation and transitions without using jquery/javascript??

    If you are looking for something like this you are at right place, this is kind of a tutorial to do CSS 3-D flip.Okay lets get started with our HTML code.

    Code:
    <section class="container" >
        <div id="card">
           <figure class="front"></figure>
           <figure class="back face"></figure>
       </div>
    </section>
    Figure: Defines self-contained content, like illustrations, diagrams, photos, code listings, etc.



    Now lets start styling our HTML in CSS.

    Code:
    .container {
          width: 259px;
          height: 350px;
          position: relative;
          margin: 10px auto 40px;
          -webkit-perspective: 800px;
              -moz-perspective: 800px;
                  -o-perspective: 800px;
                       perspective: 800px;
             }
    To activate 3-D space, an element needs perspective. The value of perspective determines the intensity of the 3-D effect. Think of it as a distance from the viewer to the object. The greater the value, the further the distance, so the less intense the visual effect.perspective: 2000; yields a subtle 3-D effect, as if we were viewing an object from far away.perspective: 100; produces a tremendous 3-D effect, like a tiny insect viewing a massive object.

    ...cont http://hilreative.blogspot.in/2014/06/css-3-d-flip.html

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

Similar Threads

  1. Page Flip - Do We Have One Here?
    By kevinhannan in forum Looking for such a script or service
    Replies: 3
    Last Post: 11-19-2009, 11:24 PM
  2. Need help with book flip
    By xyax in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-01-2009, 08:59 PM
  3. 3d flip
    By midhul in forum JavaScript
    Replies: 0
    Last Post: 12-15-2008, 04:30 PM
  4. Flip Book
    By raggaemuppet in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 05-08-2007, 01:26 PM
  5. book flip help
    By cowgurl in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 04-13-2006, 04:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •