New things in scss

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.

Boostrap 4

new featurs in boostrap 4

CSS Grid

Learn flexbox with flexbox froggyarrow-up-right learning game

CSS counter

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 counterarrow-up-right are exactly for that.

transition

  • Understand transition

Nice visualisation to choose a transition timing function or design custom bezier functionarrow-up-right

  • Cubic bezier generator

http://cubic-bezier.com/#.95,.23,.83,.67arrow-up-right

object fit

Object fit allow to simulate cover property of background images It is good to make framing of an image or video inside an object...

The IA Fall backarrow-up-right

blend modes

Blend mode are photoshop like fusion mode (multiply, transfer...) that allow to have an opacity without flattening everything

https://medium.com/@bennettfeely/css-blend-modes-could-be-the-next-big-thing-in-web-design-6b51bf53743aarrow-up-right

More in depth tuto https://css-tricks.com/basics-css-blend-modes/arrow-up-right

arrow-up-right

Example for a video with a gradient with mix-blend-mode

Original tutoarrow-up-right

The html :

The CSS :

  • Example with letter overlap

http://codepen.io/chriscoyier/pen/mvbpJarrow-up-right

Viemport units vh vw

Allow to size depending of the screen size, ideal for full width

http://www.tipue.com/blog/css3-vw-vharrow-up-right

always and ever a problem : vertical align

Flexbox based solutions

position sticky

Classical solutions :

http://vanseodesign.com/css/vertical-centering/arrow-up-right

Post css

Plugin to use future of css now (a bit the equivalent of babel and typescript for the css)

https://github.com/MoOx/postcss-cssnextarrow-up-right

  • post css / Autoprefixer

Set automatically browser prefix for you

https://github.com/postcss/autoprefixerarrow-up-right

  • post css web pack plugin

https://github.com/postcss/postcss-loaderarrow-up-right

  • Flexbox nice tutorial

http://cssreference.io/flexbox/arrow-up-right

SCSS / SASS

  • SASS MAPS

  • Sass modules

SASS module with @use

Last updated