"Curtain​ Opening Effect"
Bootstrap 4.1.1 Snippet by sumi9xm

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="curtain">
<div class="curtain__wrapper">
<input type="checkbox" checked>
<div class="curtain__panel curtain__panel--left">
</div>
<div class="curtain__prize">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/9632/trophy.svg">
</div>
<div class="curtain__panel curtain__panel--right">
</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*////////////////////Opening Effect////////////////////*/
.curtain {
width: 100%;
height: 100vh;
overflow: hidden;
}
.curtain__wrapper {
width: 100%;
height: 100%;
}
.curtain__panel {
background: orange;
width: 50%;
height: 100vh;
float: left;
position: relative;
z-index: 2;
transition: all 1s ease-out;
}
.curtain__panel--left {
transform: translateX(-100%);
}
.curtain__panel--right {
transform: translateX(100%);
}
.curtain__prize {
background: #333;
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: