A Pen by Dronca Raul on CodePen.
Created
August 3, 2016 15:43
-
-
Save ojako/ac93fe3124ebb1f53e461bdf5488dd54 to your computer and use it in GitHub Desktop.
Anomaly
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
<div class='music-card'> | |
<div class='image'></div> | |
<div class='wave'></div> | |
<div class='wave'></div> | |
<div class='wave'></div> | |
<div class='info'> | |
<h2 class='title'>Anomaly</h2> | |
<div class='artist'>Lacrae</div> | |
</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
var audio = new Audio('https://a.clyp.it/dumevvze.mp3'); | |
audio.volume = 0.1; | |
audio.play(); |
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: #8e9eab; | |
background: linear-gradient(to left, #8e9eab , #eef2f3); | |
} | |
@keyframes wave { | |
0% { transform: rotate(0deg); } | |
100% { transform: rotate(360deg); } | |
} | |
.music-card { | |
margin: 100px auto; | |
background: #fff; | |
box-shadow: 9px 7px 37px -6px rgba(0,0,0,0.75); | |
overflow: hidden; | |
position: relative; | |
width: 300px; | |
height: 500px; | |
} | |
.image { | |
background: url('http://goo.gl/Ztc4c1') no-repeat 75%; | |
background-size: cover; | |
position: absolute; | |
z-index: 1; | |
opacity: 0.3; | |
height: 300px; | |
width: 300px; | |
} | |
.image:after { | |
height: 100px; | |
content: ''; | |
top: 200px; | |
position: absolute; | |
width: 100%; | |
z-index: 1; | |
background: linear-gradient(rgba(221, 65, 127, 0), #444); | |
} | |
.wave { | |
position: absolute; | |
height: 750px; | |
width: 750px; | |
opacity: 0.6; | |
left: 0; | |
top: 0; | |
margin-left: -70%; | |
margin-top: -130%; | |
border-radius: 40%; | |
background: radial-gradient(#353535, #383737); | |
animation: wave 3000ms infinite linear; | |
} | |
.wave:nth-child(2) { | |
top: 10px; | |
animation: wave 4000ms infinite linear; | |
} | |
.wave:nth-child(3) { | |
top: 10px; | |
animation: wave 5000ms infinite linear; | |
} | |
.info { | |
position: absolute; | |
bottom: 25px; | |
left: 0; | |
right: 0; | |
text-align: center; | |
} | |
.title { | |
font-size: 1.6em; | |
font-weight: 400; | |
color: #333; | |
margin-bottom: 8px; | |
text-transform: uppercase; | |
font-family: 'Reem Kufi', sans-serif; | |
} | |
.artist { | |
color: #cfcfcf; | |
font-size: 1em; | |
letter-spacing: 0.08em; | |
text-transform: uppercase; | |
font-family: 'Reem Kufi', sans-serif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment