-
-
Save tkbremnes/2394329 to your computer and use it in GitHub Desktop.
Subtle icons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Subtle icons | |
*/ | |
html { | |
background: #111;; | |
min-height: 100%; | |
} | |
a.social { | |
border: 0.5em solid #1DC2CD; | |
display: block; | |
height: 8em; | |
width: 8em; | |
border-radius: 50%; | |
position: relative; | |
opacity: 1; | |
/*transition: opacity 0.2s ease-in 0, box-shadow 0.1s ease-in 0.2s;*/ | |
transition: all 0.3s; | |
overflow: hidden; | |
box-shadow: inset 0.2em 0 12px #888, inset 0 0.2em 12px #888; | |
} | |
a.social:hover { | |
box-shadow: none; | |
} | |
a.social:hover img { | |
width: 110%; | |
height: 110%; | |
margin-left: -5%; | |
margin-top: -5%; | |
} | |
a.social img { | |
position: absolute; | |
border-radius: 50%; | |
width: 100%; | |
height: 100%; | |
margin:0; | |
z-index: -1; | |
transition: all 0.3s; | |
} | |
a.social:hover::before { | |
width: 0; | |
} | |
a.social:hover::after{ | |
width: 0; | |
} | |
a.social::before { | |
content: " "; | |
position: absolute; | |
top:0;left: 0; | |
width: 0%; | |
height: 100%; | |
background: red;; | |
z-index: 1; | |
display: block; | |
transition: all 0.3s; | |
} | |
a.social::after{ | |
content: " "; | |
position: absolute; | |
top:0;right: 0; | |
width: 0%; | |
height: 100%; | |
background: yellow;; | |
z-index: 1; | |
display: block; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- content to be placed inside <body>…</body> --> | |
<a href="#" class="social"> | |
<img src="https://a248.e.akamai.net/assets.github.com/images/modules/about_page/octocat.png?1310104853" /> | |
</a> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"separate","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment