A Pen by Konstantin Nevsky on CodePen.
Created
October 26, 2020 20:33
-
-
Save imnebo/85ababa51e39d40b698cadbb813edea9 to your computer and use it in GitHub Desktop.
website roll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="container"> | |
| <div class="row"> | |
| <div class="demo-effects col-sm-4 col-xl-4"> | |
| <div class="app-preview demo-layouts"> | |
| <div class="trans-section"> | |
| <h4 class="preview-header">Крутой сайт</h4></div> | |
| <div class="layout-images"> | |
| <div class="layout-container image-1"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .demo-effects { | |
| position: relative; | |
| margin-bottom: 40px; | |
| } | |
| .demo-effects .demo-layouts .layout-images { | |
| width: 100%; | |
| height: 450px; | |
| background-image: url("https://app.n3bo.ru/navbar.jpg"); | |
| display: inline-block; | |
| position: relative; | |
| background-repeat: no-repeat; | |
| -webkit-box-shadow: 0 0 25px 0px #dcdcdc; | |
| box-shadow: 0 0 25px 0px #dcdcdc; | |
| padding-top: 15px; | |
| background-color: #fff; | |
| border-radius: 5px; | |
| } | |
| .layout-images .image-1 { | |
| background: url("https://app.n3bo.ru/1.png"); | |
| } | |
| .demo-effects .demo-layouts .layout-images .layout-container { | |
| background-size: cover; | |
| background-repeat: no-repeat; | |
| height: 100%; | |
| width: 100%; | |
| -webkit-transition: 10s; | |
| transition: 10s; | |
| } | |
| .demo-effects .demo-layouts:hover .layout-images .layout-container { | |
| background-position: center 100% !important; | |
| -webkit-transition: 10s; | |
| transition: 10s; | |
| } | |
| .demo-effects .demo-layouts.app-preview { | |
| overflow: hidden; | |
| padding: 0 20px; | |
| display: block; | |
| } | |
| .demo-effects .demo-layouts.app-preview .preview-header { | |
| position: relative; | |
| text-align: left; | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; | |
| font-size: calc(16px + (20 - 16) * ((100vw - 300px) / (1920 - 300))); | |
| margin-top: 20px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment