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
"header bootsrtap"
Bootstrap 4.1.1 Snippet by
karimsharf12252
4.1.1
Preview
HTML
CSS
View Full Screen
Fork
Fork this
1.5K
 
0 Fav
Post to Facebook
Tweet this
<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 ----------> <header id="home" class="vh-100"> <div class="overlay h-100"> <div class=" container h-100 d-flex align-items-center justify-content-center " > <div class="content text-white text-center"> <h6 class="fw-bolder mb-3">I am Morgan Freeman</h6> <p class="fs-1">f</p> </div> </div> </div> </header>
#home { background-image: url(../img/hero-bg.jpg); background-position: center center; background-repeat: no-repeat; background-size: cover; background-attachment: fixed; } header .overlay { position: relative; } header .overlay::before { content: ""; background-color: rgba(0, 0, 0, 0.4); width: 100%; height: 100vh; position: absolute; bottom: 0; top: 0; } header .content.text-white { z-index: 999; } header h6 { font-size: 4.5rem; } .content.text-white.text-center p::after { content: "|"; animation-name: typing; animation-duration: 4s; animation-iteration-count: infinite; animation-direction: alternate; animation-delay: 1s; } @keyframes typing { 0% { content: "|"; } 10% { content: " re |"; } 20% { content: " ree |"; } 30% { content: "reel |"; } 40% { content: "reela |"; } 45% { content: "reelan |"; } 50% { content: "reelanc |"; } 55% { content: "reelance |"; } 60% { content: " reelancer |"; } 65% { content: "dev|"; } 70% { content: "devl |"; } 75% { content: "devlo|"; } 80% { content: "devlope |"; } 100% { content: "devloper |"; } }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76