Created
April 11, 2013 10:05
-
-
Save tedshd/5362198 to your computer and use it in GitHub Desktop.
focus effect
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Focus</title> | |
<style> | |
body { | |
font-size: 24px; | |
background: #333; | |
} | |
li { | |
list-style: none; | |
position: relative; | |
} | |
a { | |
text-decoration: none; | |
display: inline-block; | |
/*width: 960px;*/ | |
/*height: 250px;*/ | |
word-wrap:break-word; | |
overflow: hidden; | |
color: #aaa; | |
/*border: solid 1px transparent;*/ | |
background: transparent; | |
outline: 0; | |
} | |
.shiny-focus:focus:after { | |
content: ""; | |
display: inline-block; | |
z-index: 1; | |
position: absolute; | |
top: -6px; | |
left: -6px; | |
width: 100%; | |
height: 100%; | |
border: solid 6px #eee; | |
border-radius: 5px; | |
box-shadow: inset 0 0 10px 4px #0099dd, 0 0 10px 4px #0099dd, 0 40px 20px 0 rgba(0,0,0,0.7); | |
} | |
</style> | |
</head> | |
<body> | |
<ul> | |
<li> | |
<a class="shiny-focus" href=""> | |
Focus test | |
</a> | |
</li> | |
</ul> | |
</body> | |
</html> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>SHADOW</title> | |
<meta name="description" content=""> | |
<meta name="keywords" content=""> | |
<link href="" rel="stylesheet"> | |
<style type=""> | |
body { | |
background: #454545; | |
} | |
div { | |
position: absolute; | |
top: 50px; | |
left: 50px; | |
width: 150px; | |
height: 150px; | |
border-radius: 3px; | |
border: solid #eee 6px; | |
box-shadow: inset 0 0 5px 3px #0088ff, 0 0 10px 5px #0088ff, 0 20px 20px 0 #000; | |
} | |
</style> | |
</head> | |
<body> | |
<div></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment