Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"imc"
Bootstrap 3.3.0 Snippet by
domegang
3.3.0
Preview
HTML
CSS
View Full Screen
Fork
Fork this
1.4K
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <header> <div class="container"> <h1>Site Name</h1> </div> </heeader> <div class="container"> <div class="row 1"> <div class="col-md-3"> <div class="block"></div> </div> <div class="col-md-6"> <div class="block a2"></div> </div> <div class="col-md-3"> <div class="block a4"></div> </div> </div> <div class="row 2"> <div class="col-md-12"> <div class="block"></div> </div> </div> <div class="row 3"> <div class="col-md-3"> <div class="blockb b"></div> </div> <div class="col-md-3"> <div class="blockb b2"></div> </div> <div class="col-md-3"> <div class="blockb b3"></div> </div> <div class="col-md-3"> <div class="blockb b4"></div> </div> </div> <div class="row 4"> <div class="col-md-3"> <div class="blockb b"></div> </div> <div class="col-md-3"> <div class="blockb b2"></div> </div> <div class="col-md-3"> <div class="blockb b3"></div> </div> <div class="col-md-3"> <div class="blockb b4"></div> </div> </div> </div>
body{ margin: 0; background:#E0E2E0; } .row { margin-top:20px; } .block{ height: 200px; width: 100%; position: relative; background: red; } .block:after{ content: ''; width: 100%; height: 100%; position: absolute; background: inherit; z-index: -1; bottom: 0; transform-origin: right bottom; transform: skewY(-2deg); } .block.a2:after{ content: ''; width: 100%; height: 100%; position: absolute; background: inherit; z-index: -1; bottom: 0; transform-origin: center bottom; transform: skewY(0deg); } .block.a3:after{ content: ''; width: 100%; height: 100%; position: absolute; background: inherit; z-index: -1; bottom: 0; transform-origin: left bottom; transform: skewY(0deg); } .block.a4:after{ content: ''; width: 100%; height: 100%; position: absolute; background: inherit; z-index: -1; bottom: 0; transform-origin: left bottom; transform: skewY(2deg); } .blockb{ height: 200px; width: 100%; position: relative; background: green ; margin-top:30px; } .blockb.b:after{ content: ''; width: 100%; height: 100%; position: absolute; background: inherit; z-index: -1; bottom: 0; transform-origin: right top; transform: skewY(2deg); } .blockb.b2:after{ content: ''; width: 100%; height: 100%; position: absolute; background: inherit; z-index: -1; bottom: 0; transform-origin: right top; transform: skewY(0deg); } .blockb.b3:after{ content: ''; width: 100%; height: 100%; position: absolute; background: inherit; z-index: -1; bottom: 0; transform-origin: left top; transform: skewY(0deg); } .blockb.b4:after{ content: ''; width: 100%; height: 100%; position: absolute; background: inherit; z-index: -1; bottom: 0; transform-origin: left top; transform: skewY(-3deg); } .block:hover, .blockb:hover { border-color:yellow; }
Related:
See More
Template
Vue Material Kit PRO
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76