[My Code] Simple black and white Effect on hover [FOR POST_AVATAR]
#1
So here's a simple effect that is very cool! what do you think? 

anyways let's begin

~ GO TO  Admin CP > Templates & Styles > Templates > Your Template > PostBIT Templates > Postbit_avatar

Search for this  >
<div class="blur img"><a href="{$post['profilelink_plain']}"> 


And add this code near that



<div class="bw pic">
<style>
/*B&W*/
.bw {
 -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
      -o-transition: all 1s ease;
     -ms-transition: all 1s ease;
         transition: all 1s ease;
}

.bw:hover {
 -webkit-filter: grayscale(100%);
}
</style>

Thats it


Some Screenshots


Normal                          On Hover

                  
Reply
#2
Look's cool Smile thanks
Reply
#3
(2016-04-29, 10:00 AM)Donald_Duck Wrote: any snapshot or live url to above effect ! thanks

Done!
Reply
#4
Simple but Nice effect bro Big Grin
Good job !
Discord: Prince#4000
Reply
#5
Your CSS should go in the header_include template, but other than that it looks cool.
Reply
#6
(2016-05-02, 07:59 PM)laie_techie Wrote: Your CSS should go in the header_include template, but other than that it looks cool.

Well it should go in global.css but i made things easier Smile
Reply
#7
shouldn't this be in tutorials not mycode?

nice article tho.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)