Last active
August 29, 2015 14:06
-
-
Save milojennings/aa8b79ff98dbcb34eec6 to your computer and use it in GitHub Desktop.
Zig Zag divider w/ SVG shadow experiment (buggy)
This file contains hidden or 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
body { | |
background:url(http://i.imgur.com/qKsVr.png); | |
} | |
.box { | |
width:400px; | |
background: white; | |
position: relative; | |
} | |
.zig-zag-divider { | |
display: block; | |
position: relative; | |
width: 100%; | |
overflow: hidden; | |
height: 30px; | |
bottom: -29px; | |
/*outline: 1px solid hsla(0, 100%, 50%, 0.2);*/ | |
} | |
.zig-zag-divider:before{ | |
content: ""; | |
display: block; | |
position: relative; | |
top: 1px; | |
width: 100%; | |
height: 30px; | |
background: linear-gradient(-45deg, transparent 75%, white 75%) 0 50%, | |
linear-gradient( 45deg, transparent 75%, white 75%) 0 50%; | |
background-repeat: repeat-x; | |
background-size: 30px 30px, 30px 30px; | |
-webkit-filter: drop-shadow(0px 1px 5px rgba(0,0,0,0.42)); | |
/*filter: url(#drop-shadow);*/ | |
} | |
#zig-zag-divider-shadow{ | |
/*display: none;*/ | |
} |
This file contains hidden or 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
<!--Shadow SVG for Firefox--> | |
<svg id="zig-zag-divider-shadow" height="0" xmlns="http://www.w3.org/2000/svg"> | |
<filter id="drop-shadow"> | |
<feGaussianBlur in="SourceAlpha" stdDeviation="2"/> | |
<feOffset dx="0" dy="1" result="offsetblur"/> | |
<feFlood flood-color="rgba(0,0,0,0.42)"/> | |
<feComposite in2="offsetblur" operator="in"/> | |
<feMerge> | |
<feMergeNode/> | |
<feMergeNode in="SourceGraphic"/> | |
</feMerge> | |
</filter> | |
</svg> | |
<div class="box"> | |
Lorem ipsum dolor sit amet | |
<div class="zig-zag-divider"></div> | |
</div> |
This file contains hidden or 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":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment