1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to Make animation in CSS3

Discussion in 'CSS' started by Prabhat Dhakal, Apr 1, 2014.

  1. #1
    I want to create a image animation in CSS3. But I don't have any idea about it. Though I can very well design in CSS3
     
    Prabhat Dhakal, Apr 1, 2014 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #2
    Define "image animation"? CSS animations != images... so that statement seems a bit... off; unless you're thinking on apo or opacity of multiple image files or slide-showing frames like a film-reel. Or do you mean just moving an image around the screen?

    I think we need more on what you are trying to do before we can help you.
     
    deathshadow, Apr 2, 2014 IP
    pitdark16 likes this.
  3. themasterpeice

    themasterpeice Member

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    25
    #3
    Dear brother
    There are alot of ways to animate images in CSS3. But you must be more specific in your post. BTW I am pasting a simple html and css3 code for you to start up.
    Just play with the code you well learn alot.

    Best of luck for your Image animation in css3


    <div id="cf">
      <img class="bottom" src="/images/Windows%20Logo.jpg" />
      <img class="top" src="/images/Turtle.jpg" />
    </div>
    HTML:

    #cf {
      position:relative;
      height:281px;
      width:450px;
      margin:0 auto;
    }
    
    #cf img {
      position:absolute;
      left:0;
      -webkit-transition: opacity 1s ease-in-out;
      -moz-transition: opacity 1s ease-in-out;
      -o-transition: opacity 1s ease-in-out;
      transition: opacity 1s ease-in-out;
    }
    
    #cf img.top:hover {
      opacity:0;
    }
    Code (CSS):
     
    themasterpeice, May 11, 2014 IP
    pitdark16 likes this.
  4. Philip C. Ngo

    Philip C. Ngo Member

    Messages:
    85
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #4
    if you want make something like a banner there are several online tools , css3maker.com/css3-animation.html or other animation generators without tools or software's it will too hard if you hadn't design experience .
     
    Philip C. Ngo, May 20, 2014 IP