Skip to content

Instantly share code, notes, and snippets.

@imnebo
Created October 26, 2020 20:33
Show Gist options
  • Select an option

  • Save imnebo/85ababa51e39d40b698cadbb813edea9 to your computer and use it in GitHub Desktop.

Select an option

Save imnebo/85ababa51e39d40b698cadbb813edea9 to your computer and use it in GitHub Desktop.
website roll
<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>
.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