Skip to content

Instantly share code, notes, and snippets.

@nielsdoorn
Created March 27, 2015 10:31
Show Gist options
  • Save nielsdoorn/d4ff07bcdddb6ee8a7a2 to your computer and use it in GitHub Desktop.
Save nielsdoorn/d4ff07bcdddb6ee8a7a2 to your computer and use it in GitHub Desktop.
Untitled
.blok {
width: 280px;
height: 180px;
transition: .2s;
background: url('http://placekitten.com/g/310/310');
background-size: 280px 280px;
opacity: 0.4;
}
.blok:hover {
background-size: 310px 310px;
opacity: 1;
}
<!-- content to be placed inside <body>…</body> -->
<div class="blok"></div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment