omagus.com

Need Unlimited Creativity
  • Homepage
    Home
  • Latest blogs
    Blog
  • Latest work
    Portfolio
  • It's me.!
    About me
  • Feel free to ask
    Contact

Our blog, keeping you up-to-date on our latest news.

css3 transition

December 2, 2011 at 4:03 am | blog, CSS3, tipstrick | 3 comments

Untuk mendapatkan efek hover pada suatu objek biasanya kita menggunakan javascript atau memakai flash. tapi dengan cs3 kita bisa mendapatkan hal tersebut. Kita bisa membuat efek berputar, di zoom atau di geser. Dengan efek easing yang biasanya memakai jquery.

XHTML
1
2
3
<div id="tran">
<a href="index.html"><h1>Your Logo</h1></a>
</div>

CSS :

CSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#tran h1 { width:  290px;
margin: 0 auto;
background: #000;
-webkit-transition: all 1s ease-in-out;
-moz-transition: all 1s ease-in-out;
-o-transition: all 1s ease-in-out;
-ms-transition: all 1s ease-in-out;
height: 100px;  }
 
#tran h1:hover {background: #333;
-webkit-transform: rotate(5deg) scale(1.05);
-moz-transform: rotate(5deg) scale(1.05);
-o-transform: rotate(5deg) scale(1.05);
-ms-transform: rotate(5deg) scale(1.05); }

Penjelasannya :

Tekhnik css di atas di gunakan untuk menampilkan animasi ease in out logo tag <h1>, dan saat posisi hover (mouse di atas object). maka akan di putar 5derajad

CSS
1
rotate(5deg)
. Dan akan di perbesar skalanya
CSS
1
scale(1.05)
.

Dengan tekhnik ini anda bisa membuat efek memutar text bisa sampai 360 derajad sserta bisa di zoom atau di perbesar. untuk kecepatan efectnya bisa anda sesuaikan sendiri pada bagian ini

CSS
1
all 1s ease-in-out;
. Anda bisa merubah 1s sesuai dengan yang anda inginkan.

untuk  previewnya silahkan lihat di website alurkria.com

Sekian selamat mencoba…!

 

  • Share this:

Lihat Juga Yang ini

  • Cara praktis instalasi dualboot ubuntu dengan windows. (43)
  • dotgrey template lokomedia (5)
  • Alexa kena rayu juga (29)
  • testing update blog (5)
  • Aplikasi opensource untuk web development (11)
  • menjalankan photosop portable di windows7 (4)
  • Ngeblog lagi… (35)

<< Back to Blog Discuss this post

 

3 Comments to “css3 transition”

  • aRai says:
    03/12/2011 at 10:35 pm
    Browser Firefox 3.6.24 Firefox 3.6.24 OS Ubuntu Ubuntu

    like dis om … nambah ilmu cs3 na uy
    aRai recently posted..Menampar dan Ditampar

    Reply
  • amdhas says:
    02/12/2011 at 9:53 pm
    Browser Firefox 8.0.1 Firefox 8.0.1 OS Windows XP Windows XP

    Keren om agus..
    Salam kenal

    Reply
    • omagus says:
      02/12/2011 at 10:19 pm
      Browser Firefox 8.0.1 Firefox 8.0.1 OS Windows XP Windows XP

      salam kenal juga mas’e :)
      omagus recently posted..css3 transition

      Reply
Leave a Comment
  • CommentLuv badgeShow more posts

    Enter your email address to subscribe by email.

    Join 2 other subscribers

    Recent Post

    • Menggunakan font sendiri di website [firefox solved]
    • testing update blog
    • memperingan jalannya firefox di windows
    • css3 usefull links and tutorial
    • Creakuno
    • Update wordpress 3.3
    • css3 transition
    • sebuai wordpress theme
    • dotgrey template lokomedia
    • membuat text 3d dengan css

    RSS Pojok Curhat

    • Njewords varian
    • Bergabung di pinterest
    • Cermin
    • Pemasaran online dengan twitter..? Kenapa tidak?
    • Kenali musuhmu..!
    • Kiat sukses berbisnis online
    • bisnis dan dunia pendidikan
    • pertanda baik di awal 2012
    • resolusi 2012 dan revolusi
    • malaikat penjagaku
 
© 2009 - 2011 omagus.com Allright reserved. Read about this Theme ? top
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.