Creating effects with css increasingly prevalent today, by using CSS filter we can create effects that we usually find in Photoshop, even as instagram effects can be created with CSS3 capabilities. CSS Filter is still relatively new, and still rarely used
In this tutorial we will try to make the CSS filter effects with CSS Animation in the join so that it will produce a color image transition effects attractive. Her darling new support webkit browsers such as Google Chrome or Safari.
Usage: This effect can be used to beautify Header, Picture in the website gallery, and more.
Immediately, we begin by creating an html file
HTML
In this paper I show only one div only, although in his demo would be a lot of div as to beautify the appearance of the demo, but the bottom line is just one div that is just effects.
<div class="column1 my-cell">Of note there is only provision column1 class, because the column was to be given effect with css.
<img src="http://imcreator.com/wp-content/uploads/2014/01/wpid-Featured_Picture22.jpg" alt="">
<div class="desc">
<h1>Tutorial Web Design Indonesia</h1>
<p><a href="http://tipsandtriksblogspot.blogspot.com">http://tipsandtriksblogspot.blogspot.com</a></p>
</div>
</div>
CSS
To give effect to the div that contains the image we love the effect by using the following css
.column1{Hopefully Useful...
position: relative;
}
.column1 img{
width: 100%;
height: auto;
}
desc{
position: absolute;
top: 50%;
left: 5%;
}
.desc h1{
color: #fff;
font-family: 'Hammersmith One', sans-serif;
font-size: 20px;
}
.desc a{
color: #ddd;
}
.column2{
padding: 40px;
}
.column2 p{
margin: 20px 0;
}
.column2 ul{
margin-left: 15px;
}
.column2 ul li{
border-bottom: 1px solid #ddd;
padding: 5px 0;
}
/* Animation */
@-webkit-keyframes pulse {
0% { -webkit-filter: contrast(400%) grayscale(0%); }
100% { -webkit-filter: contrast(100%) grayscale(100%); }
}
@-webkit-keyframes mover {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
.column1{
/* -webkit-filter: */
/* contrast(200%) */
/* brightness(25%) */
/* invert(100%) */
/* hue-rotate(110deg) */
/* grayscale(100%) */
/* sepia(100%) */
/* blur(10px); */
/* Bisa dipilih efek-efek diatas */
/* -webkit-transition: -webkit-filter 1s; */
-webkit-animation: pulse 3s alternate infinite
/*mover 5s alternate infinite*/;
}
.column1:hover { -webkit-filter: contrast(300%)

Post a Comment