Skip to content

Instantly share code, notes, and snippets.

@kkarakk
Created June 2, 2014 14:18
Show Gist options
  • Save kkarakk/ef8dc2cae9b310a84e10 to your computer and use it in GitHub Desktop.
Save kkarakk/ef8dc2cae9b310a84e10 to your computer and use it in GitHub Desktop.
A Pen by karan harsh wardhan.
<html>
<head>
<link rel="stylesheet" type="text/css" href="theme.css">
</head>
<body>
<div>
<div class="img-circular" id ="inner"></div>
</div>
</body>
</html>
.img-circular{
width: 200px;
height: 200px;
background-image: url('http://placekitten.com/200/200') ;
background-size: cover;
-webkit-border-radius: 100px;
-moz-border-radius: 100px;
border-radius:100px;
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
-webkit-animation: fadein 5s ;
-webkit-animation-iteration-count: 1;
}
#inner{
margin: 0 auto;
}
@-webkit-keyframes fadein {
0% {-webkit-transform: scale(1.0, 1.0); opacity: 0.0;}
100% {-webkit-transform: scale(1.0, 1.0); opacity: 1.0;}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment