Skip to content

Instantly share code, notes, and snippets.

@tatamos
Last active July 20, 2020 15:24
Show Gist options
  • Save tatamos/bd42c8b3176f9a5cb4dba1f4a153a7dd to your computer and use it in GitHub Desktop.
Save tatamos/bd42c8b3176f9a5cb4dba1f4a153a7dd to your computer and use it in GitHub Desktop.
Слайдер на flexBOX
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Слайдер на flexBOX</title>
<meta name="description" content="Слайдер на flexBOX">
<meta name="viewport" content="width=device-width">
<link rel="icon" href="img/favicon.png">
<meta property="og:image" content="img/@1x/preview.jpg">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/styles.min.css">
</head>
<body>
<!-- Custom HTML / Remove before use -->
<div class="flex-slider">
<div class="items items-1">
<!-- <a href="katalog/vannyi/">
<img src="../img/1.jpg" alt="{$pagetitle}" title="[[*pagetitle]]"></a> -->
<span>WHO</span>
</div>
<div class="items items-2"><span>ITS</span></div>
<div class="items items-3"><span>WHO</span></div>
<div class="items items-4"><span>NAH</span></div>
</div>
<script src=""></script>
<!-- <script src="js/scripts.min.js"></script> -->
</body>
</html>
body
margin:0
padding:0
color:#000
.flex-slider
//height: 250px
box-sizing: border-box
display: flex
justify-content: center
align-items: center
.items
height: 100vh
display: flex
justify-content: center
// align-items: center
font-family: 'RobotoCondensed', sans-serif
color: #77f0e5
// border: 1px solid #000
background-color: #aeaeae
flex-basis: 25%
transition: all 0.8s
&:hover
flex-basis: 110%
span
margin-top: 50px
font-size: 2rem
text-shadow: 0 1px 3px rgb(8 66 69)
.items-1
background: url(../../images/lib/2020/04/29/category_home9.jpg) no-repeat center center
background-size: cover
.items-2
background: url(../../images/3.jpg) no-repeat center center
background-size: cover
.items-3
background: url(../img/31.jpg) no-repeat center center
background-size: cover
.items-4
background: url(../img/301.jpg) no-repeat center center
background-size: cover
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment