Getting Started with Vue.js: #10 Applying Styles with Vue


In the previous lesson, we were able to apply CSS classes to our HTML. In this lesson, we will apply styles directly to the element.

While we talked about using JavaScript to only apply CSS classes, there may be some instances where you want to apply styles directly. One instance could be if you are listening for mouse movement and want to change an elements positioning based on that mouse movement. This would be something like making eyes move to follow a cursor on a page.

To learn more about DigitalOcean: https://www.digitalocean.com/
Follow us on Twitter: https://twitter.com/digitalocean
Like us on Facebook: https://www.facebook.com/DigitalOcean
Follow us on Instagram: https://www.instagram.com/thedigitalocean
We’re hiring: http://grnh.se/aicoph1


Duration: 00:04:37
Publisher: DigitalOcean
You can watch this video also at the source.