"Pure CSS Magazine style layout with transitions"
Bootstrap 4.1.1 Snippet by koshikojha

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
<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='pages'>
<input id='one' name='trigger' type='radio'>
<input id='two' name='trigger' type='radio'>
<input id='three' name='trigger' type='radio'>
<input id='four' name='trigger' type='radio'>
<div class='pages_page'>
<div class='pages_page__inner'>
<div class='logo'>Fashion</div>
<div class='pagenumber'>1 2</div>
<div class='content'>
<div class='content_center'>
<h4>The latest in fashion & fashion design</h4>
</div>
</div>
</div>
</div>
<div class='pages_page'>
<div class='pages_page__inner'>
<div class='content'>
<div class='content_center right'>
<h4>The latest in fashion & fashion design</h4>
</div>
<div class='overlay'></div>
</div>
<div class='control next'>
<label for='two'></label>
</div>
</div>
</div>
<div class='pages_page'>
<div class='pages_page__inner'>
<div class='logo'>Fashion</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
@import url("https://fonts.googleapis.com/css?family=Sree+Krushnadevaraya&display=swap");
@import url("https://fonts.googleapis.com/css?family=Catamaran&display=swap");
:root {
--margin: 110px;
--background: #e2e2f5;
--perspective: 1800px;
--transition: transform 1s .2s, z-index 0s 0.5s;
--yellow: #ffce14;
}
body .pages_page {
width: 50%;
position: absolute;
right: 0px;
height: 100%;
-webkit-transform-origin: 0 50%;
transform-origin: 0 50%;
}
* {
box-sizing: border-box;
}
.overlay {
background: rgba(255, 155, 0, 0.7019607843);
position: fixed;
width: 100%;
pointer-events: none;
height: 100%;
z-index: -1;
}
body {
margin: 0;
padding: 0;
background: var(--background);
height: 100vh;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Its a great snippet, but horrible on mobile devices which is a real shame.

mirecart () - 4 years ago - Reply 0