Learn SASS - Interpolation

August 8, 2018 comments 103 Reads

This is the 10th video in the SASS mini-course. In SASS, there is a feature that is similar to template strings in JavaScript. It is called Interpolation and is carried out with
#{ }
Put your variable inside the curly braces and you can use the value of the variable as part of a selector, property name or property value.
Code GIST: https://gist.github.com/prof3ssorSt3v3/2ff278987af32dacfee499e46211eff3
SASS Playlist: https://www.youtube.com/watch?v=5jZGo_k8Rd0&list=PLyuRouwmQCjlzPHwHOAIfIFXkf6J8Q_qy