Professional Documents
Culture Documents
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
https://the-echoplex.net/flexyboxes/
Flexbox
http://www.flexboxdefense.com/
CSS Specificity Calculator
https://specificity.keegan.st/
Pseudo-elemente
.dropdown:hover .dropdown-content {
display: block;
}
Background
Background
Parallax Scroll - Background-attachment
Parallax Scroll
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link href="paralax.css" rel="stylesheet">
</head>
<body>
<p>Scroll Up and Down this page to see the parallax scrolling effect.</p>
<div class="parallax"></div>
<div style="height:1000px;background-color:white;font-size:36px">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium aut
doloremque nesciunt? Delectus facere in iusto, reiciendis saepe unde velit. Culpa,
dicta dignissimos dolores exercitationem harum nemo obcaecati recusandae repellat?
</div>
</body>
</html>
Parallax Scroll
.parallax {
background-image: url("img_parallax1.jpg");
min-height: 800px;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
Background-uri multiple
https://github.com/miezuit/html_css_training/tree/master/backgrounds/img
Background-uri multiple
body {
background-image: url("img/rocket.png"), url("img/earth.png"), url("img/space.jpg");
background-repeat: no-repeat, no-repeat, no-repeat;
background-size: auto, 20%, cover;
background-position: 20% 20%, center center, 0% 0%;
height: 100vh;
}
Transformări
div {
transform: translate(50px, 100px);
}
div {
transform: rotate(20deg);
}
div {
transform: scale(2);
}
Transform-origin
Transform-origin
Tranziții
transition
transition-delay
transition-duration
transition-property
transition-timing-function
div { div:hover {
width: 100px; width: 300px;
height: 100px; }
background: red;
transition: width 2s;
}
Exercițiu - Landing Page
Ce ați învățat?
• Specificitate
• Pseudo-elemente
• Background
• Parralax
• Transformări
• Tranziții