New things in scss
Last updated
Last updated
CSS is still evoluting.
CSS 2 to CSS 3
From css to preprocessors
Post processor
CSS 4
Also the number of possibilities in css is high. And probably as me, you have missed some handy or cool stuff css3 or more have brought to css.
sass
grid with flexbox (allow vertical alignement)
grid unit less columns
rem font sizing
new small screen breakpoints
Learn grid with grid garden learning game
use of css grid in production right now ? https://www.smashingmagazine.com/2017/06/building-production-ready-css-grid-layout
another tutorial on css grid https://hacks.mozilla.org/2017/10/an-introduction-to-css-grid-layout-part-1/
Flexbox
Learn flexbox with flexbox froggy learning game
When you have a list of item and use a content
tag to define content with css. And what if you want to add to this content the number of item in a list without changing the js.
The css counter are exactly for that.
Understand transition
Nice visualisation to choose a transition timing function or design custom bezier function
Cubic bezier generator
http://cubic-bezier.com/#.95,.23,.83,.67
Object fit allow to simulate cover property of background images It is good to make framing of an image or video inside an object...
Blend mode are photoshop like fusion mode (multiply, transfer...) that allow to have an opacity without flattening everything
More in depth tuto https://css-tricks.com/basics-css-blend-modes/
Example for a video with a gradient with mix-blend-mode
The html :
The CSS :
Example with letter overlap
http://codepen.io/chriscoyier/pen/mvbpJ
Allow to size depending of the screen size, ideal for full width
http://www.tipue.com/blog/css3-vw-vh
Flexbox based solutions
(Can I use Sticky)[https://caniuse.com/#feat=css-sticky]
More in depth article to understand position sticky https://www.sitepoint.com/css-position-sticky-introduction-polyfills/
End of 2017 support for position sticky: supported by all expept IE.
Classical solutions :
http://vanseodesign.com/css/vertical-centering/
Introduction post about post css https://github.com/MoOx/postcss-cssnext)
post css parts The module platform for post css
post css / css next
Plugin to use future of css now (a bit the equivalent of babel and typescript for the css)
https://github.com/MoOx/postcss-cssnext
post css / Autoprefixer
Set automatically browser prefix for you
https://github.com/postcss/autoprefixer
post css web pack plugin
https://github.com/postcss/postcss-loader
Flexbox nice tutorial
http://cssreference.io/flexbox/
SASS MAPS
Sass modules