Lucas Bonomi
Webdesigner Front-End developer @Algolia| CSS Ninja | co founder @rocket_design | http://rkdn.fr | http://bullg.it - For hire
Lucas Bonomi (@LukyVj)
Lucas Bonomi
@LukyVj
Frontend Developer / Designer
at
Lucas Bonomi (@LukyVj)
Lucas Bonomi (@LukyVj)
Lucas Bonomi (@LukyVj)
Lucas Bonomi (@LukyVj)
header {
background: blue;
}
article {
background: green;
}
article:before {
position: absolute;
background: red;
transform: skewY(-3deg);
z-index: 10;
}
Lucas Bonomi (@LukyVj)
// Diagonals
@mixin diagonal($rotation, $background, $height, $pos: after) {
&:#{$pos} {
content: "";
display: block;
position: absolute;
width: 100%;
height: $height;
background: #{$background};
transform: skewY($rotation); // Skew it
z-index: 0;
// If the screen is really large,
// Reduce your rotation angle
@media (min-width: 2000px) {
transform: skewY($rotation / 2);
}
@content; // Insert more CSS if needed
}
}
Lucas Bonomi (@LukyVj)
Lucas Bonomi (@LukyVj)
Lucas Bonomi (@LukyVj)
Lucas Bonomi (@LukyVj)
Lucas Bonomi (@LukyVj)
Lucas Bonomi (@LukyVj)
Lucas Bonomi (@LukyVj)
Slides : http://slides.com/lukyvj
By Lucas Bonomi
Webdesigner Front-End developer @Algolia| CSS Ninja | co founder @rocket_design | http://rkdn.fr | http://bullg.it - For hire