video close button

This commit is contained in:
scotty
2016-03-07 13:24:07 -08:00
parent 143fe3e0cb
commit 1fdea6039b
3 changed files with 31 additions and 2 deletions
+29 -1
View File
@@ -1216,13 +1216,41 @@ $feature-box-div-margin-bottom: 40px
#videoPlayer
@include fullScreen
background-color: rgba(0, 0, 0, 0.75)
background-color: rgba(0, 0, 0, 0.9)
display: none
iframe
@include pureCenter
@include maintain-aspect-ratio
#closeButton
position: absolute
top: 20px
right: 20px
width: 50px
height: 50px
border: 2px solid transparent
transition: 0.3s
&:before, &:after
content: ""
position: absolute
top: calc(50% - 1px)
left: 10%
width: 80%
height: 2px
background-color: white
&:before
transform: rotate(45deg)
&:after
transform: rotate(-45deg)
&:hover
border-color: white
// Features
+1
View File
@@ -38,6 +38,7 @@ $video-section-height: 550px
background-size: cover
#talkToUs
h4
br
+1 -1
View File
@@ -161,7 +161,7 @@ title: Accelerate Your Delivery
<div id="videoPlayer">
<iframe data-url="https://www.youtube.com/embed/WwBdNXt6wO4?autoplay=1" frameborder="0" allowfullscreen></iframe>
<button class="close-button">foo</button>
<button id="closeButton"></button>
</div>
<style>