Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added cssMemeSlider/img/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cssMemeSlider/img/imd1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cssMemeSlider/img/imd2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cssMemeSlider/img/imd3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cssMemeSlider/img/imd4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions cssMemeSlider/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>CSS Meme Slider</title>
<link type="Image/x-icon" href="../cssMemeSlider/img/favicon-32x32.png" rel="icon">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
<link href="./style/style_body.css" rel="stylesheet">
</head>
<body>
<h1>CSS Meme Slider</h1>
<div class="container">
<div class="slider_body">
<input type="radio" name="radio" id="radio1" checked>
<input type="radio" name="radio" id="radio2">
<input type="radio" name="radio" id="radio3">
<input type="radio" name="radio" id="radio4">
<div class="s1">
<div class="img">
<img src="../cssMemeSlider/img/imd1.jpg" alt="imd1" id="img1">
</div>
<div class="img">
<img src="../cssMemeSlider/img/imd2.jpg" alt="imd2" id="img2">
</div>
<div class="img">
<img src="../cssMemeSlider/img/imd3.jpg" alt="imd3" id="img3">
</div>
<div class="img">
<img src="../cssMemeSlider/img/imd4.jpg" alt="imd4" id="img4">
</div>
</div>
<div class="container1">
<div class="title_h1">
<div class="title_h2">
<div class="title">When it is prohibited to use js and px in that task</div>
<div class="title">When you see a photo of the screen and not a screenshot</div>
<div class="title">This is me running to look at my grades for the Cross-Check</div>
<div class="title">When you're trying to pronounce "tough", "through", "thought", "though" correctly</div>
</div>
</div>
<div class="button">
<label for="radio1" class="my_button_b1">
<span></span>
</label>
<label for="radio2" class="my_button_b2">
<span></span>
</label>
<label for="radio3" class="my_button_b3">
<span></span>
</label>
<label for="radio4" class="my_button_b4">
<span></span>
</label>
</div>
</div>
</div>
</div>
</body>
</html>
168 changes: 168 additions & 0 deletions cssMemeSlider/style/style_body.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
body {
margin: 0 auto;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
background-color: #25282A;
font-family: 'Montserrat', sans-serif;
color: #FFFFFF;
}
.container {
display: flex;
flex-direction: column;
width: 80%;
max-width: 46rem;
}
.slider_body {
margin: 0 auto;
display: flex;
width: 100%;
flex-direction: column;
overflow: hidden;
}
.s1 {
display: flex;
width: 400%;
transition: all 0.6s ease;
}
.img {
width: 25%;
height: 100%;
}
.img img {
object-fit: contain;
width: 100%;
height: 100%;
}
.container_content {
width: 100%;
margin-top: 4%;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.button {
display: flex;
flex-direction: row;
justify-content: space-around;
width: 10rem;
height: 1rem;
}
.button div {
width: 1.5rem;
height: 1.5rem;
}
input[name="radio"] {
display: none;
}
.my_button_b1,
.my_button_b2,
.my_button_b3,
.my_button_b4 {
display: flex;
justify-content: center;
align-items: center;
width: 1.5rem;
height: 1.5rem;
}
.my_button_b1:hover,
.my_button_b2:hover,
.my_button_b3:hover,
.my_button_b4:hover {
cursor: pointer;
}
.my_button_b1 span,
.my_button_b2 span,
.my_button_b3 span,
.my_button_b4 span {
display: flex;
width: 1rem;
height: 1rem;
border-radius: 50%;
background-color: #71ABFE;
transition: all 0.6s ease;
}
.my_button_b1:hover span,
.my_button_b2:hover span,
.my_button_b3:hover span,
.my_button_b4:hover span {
box-shadow: 0.2em 0.2em .4em red, -0.5em 0 .4em olive;
}
.title_h1 {
width: 52rem;
overflow: hidden;
}
.title_h2 {
width: 400%;
display: flex;
flex-direction: row;
overflow: hidden;
transition: all 0.6s ease;
}
.title {
width: 50rem;
}
.container1 {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: baseline;
margin-top: 2rem;
}
@media (max-width: 800px) {
.container1 {
flex-direction: column-reverse;
align-items: center;
}
.title_h1 {
width: 100%;
margin-top: 2rem;
margin-left: 0;
}
.title {
width: 100%;
}
}


#radio1:checked ~ .s1 {
margin-left: 0;
}
#radio2:checked ~ .s1 {
margin-left: -100%;
}
#radio3:checked ~ .s1 {
margin-left: -200%;
}
#radio4:checked ~ .s1 {
margin-left: -300%;
}

#radio1:checked ~ .container1 .button .my_button_b1 span {
background-color: #2bffff;
}
#radio2:checked ~ .container1 .button .my_button_b2 span {
background-color: #2bffff;
}
#radio3:checked ~ .container1 .button .my_button_b3 span {
background-color: #2bffff;
}
#radio4:checked ~ .container1 .button .my_button_b4 span {
background-color: #2bffff;
}

#radio1:checked ~ .container1 .title_h1 .title_h2 {
margin-left: 0;
}
#radio2:checked ~ .container1 .title_h1 .title_h2 {
margin-left: -100%;
}
#radio3:checked ~ .container1 .title_h1 .title_h2 {
margin-left: -200%;
}
#radio4:checked ~ .container1 .title_h1 .title_h2 {
margin-left: -300%;
}
Empty file removed index.html
Empty file.