SVG Explained in 100 Seconds
Skills:
AI Design Tools80%
Key Takeaways
The video explains Scalable Vector Graphics (SVG) and its fundamentals, including how to create SVGs using tools like Figma or Illustrator, or by writing code directly, and how to use SVG elements like rectangle, circle, and polygon to draw graphics.
Full Transcript
scalable vector graphics or svg is an image format that's like html for 2d graphics they differ from raster images like png or jpeg that use a grid of tiny pixels to create an image and as you zoom in the pixels become larger making the image grainy in contrast a vector image can be scaled to any size without losing its resolution because instead of fixed pixels its appearance is based on geometry you can create svgs with tools like figma or illustrator or by writing the code directly which is easier than you might think and opens the door to animation and interactivity create one by opening an svg tag then define a coordinate system with the view box attribute that gives us a frame with a width and height of 100 units on which we can draw graphics draw basic shapes by adding elements like rectangle circle and polygon position the rectangle by defining its x-y value on the view box then give it a size which can take values that are either explicit or responsive we can change the color of the shape by defining its fill or define an outline with the stroke attribute and if our styling gets too complex we can extract everything into a separate css stylesheet by applying a class to it just like any html element we have the full power of css at our fingertips which means we can react to events on the shapes and then change their styling or animation accordingly but most graphics are more than just basic shapes they contain complex artwork with all kinds of twists and turns and that's where the path element comes in the shape of a path is determined by one attribute d for draw coding a path is like controlling the tip of a pen with a series of commands the most basic command is m for move which will move the pen tip to an x y coordinate an uppercase letter means move relative to the view box and lowercase means move relative to the last point in the path but move doesn't actually draw anything to put the pen tip down on the paper and draw something use the l command it works exactly like move but draws a line that can be styled straight lines are cool but what if we wanted to add a curve like we would with the handles in illustrator create bezier curves with the c and q commands define the position of two control points then the x and y coordinates where the curve should end then svg will automatically calculate a smooth curve for you at any scale this has been scalable vector graphics in 100 seconds if you want to see more short videos like this hit the like button and subscribe thanks for watching and i will see you in the next one
Original Description
What are Scalable Vector Graphics 🤏? How are vector images different than raster images? Learn the fundamentals of SVG in 100 seconds!
Learn more about web design, SVG, and CSS in this tutorial: https://fireship.io/lessons/css-cards-animated/
References:
Star Wars Animation https://codepen.io/nerdmanship/pen/ZLoyPG
Path Docs https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths
#webdev #html #100SecondsOfCode
Install the quiz app 🤓
iOS https://itunes.apple.com/us/app/fireship/id1462592372?mt=8
Android https://play.google.com/store/apps/details?id=io.fireship.quizapp
Upgrade to Fireship PRO at https://fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
My VS Code Theme
- Atom One Dark
- vscode-icons
- Fira Code Font
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Fireship · Fireship · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Angular 4 Development and Production Environments with Firebase
Fireship
OAuth with Angular and Firebase Tutorial
Fireship
Anonymous Authentication with Angular and Firebase - Lazy Registration
Fireship
Angular Router Guards for Firebase Users
Fireship
Angular Firebase CRUD App with NoSQL Database Tutorial
Fireship
Upload Files from Angular to Firebase Storage
Fireship
How to Deploy an Angular App to Firebase Hosting
Fireship
Sharing Data between Components in Angular
Fireship
Loading Spinners for Asynchronous Firebase Data
Fireship
Angular 4 Transactional Email with Google Firebase Cloud Functions
Fireship
Firebase Database Rules Tutorial
Fireship
Autocomplete Search with Angular4 and Firebase
Fireship
Reddit Inspired Upvoting System with Angular and Firebase NoSQL
Fireship
Angular Drag-and-Drop File Uploads to Firebase Storage
Fireship
Text Translation with Firebase Cloud Functions onWrite and Angular 4
Fireship
Custom Usernames with Firebase Authentication
Fireship
Twitter-Inspired Follow Unfollow Feature with Firebase and Angular 4
Fireship
Simple Pagination with Firebase and Angular 4
Fireship
How to Connect Firebase Users to their Data - 3 Methods
Fireship
Add Toast Message Notifications to your Angular App
Fireship
Facebook-Inspired Reactions System with Angular and Firebase
Fireship
Learn NgModule in Angular with Examples
Fireship
Lazy Loading Components in Angular 4
Fireship
Stripe Checkout Payments with Angular and Firebase - Part 1
Fireship
Process Stripe Payments with Firebase Cloud Functions - Part 2
Fireship
Selling Digital Content in Angular with Stripe Payments - Part 3
Fireship
Angular 4 Full Text Search with Algolia - Part 1
Fireship
Algolia with Firebase Cloud Functions - Part 2
Fireship
Firebase Phone Authentication in Angular 4
Fireship
Top 7 RxJS Concepts for Angular Developers
Fireship
Learn Angular Animations with 5 Examples
Fireship
Advanced Firebase Data Filtering (Multi-Property)
Fireship
Realtime Maps with Mapbox + Firebase + Angular
Fireship
Angular Reactive Forms with Firebase Database Backend
Fireship
Send Push Notifications in Angular with Firebase Cloud Messaging
Fireship
Top 7 Ways to Debug Angular 4 Apps
Fireship
Infinite Scroll with Angular and Firebase
Fireship
Use TypeScript with Firebase Cloud Functions
Fireship
Realtime Graphs and Charts with Plotly and Firebase
Fireship
Role-Based User Permissions in Firebase
Fireship
User Presence System in Realtime - Online, Offline, Away
Fireship
Location-based Queries with GeoFire and Angular Google Maps
Fireship
Angular ngrx Redux Quick Start Tutorial
Fireship
Angular Ngrx Effects with Firebase Database
Fireship
Progressive Web Apps with Angular
Fireship
Angular Ngrx with Firebase Google OAuth User Authentication
Fireship
RxJS Quick Start with Practical Examples
Fireship
Send SMS Text Messages with Twilio and Firebase
Fireship
Firebase Database Performance Profiling
Fireship
Native Desktop Apps with Angular and Electron
Fireship
Subscription Payments with Stripe, Angular, and Firebase
Fireship
Firestore with AngularFire5 Quick Start Tutorial
Fireship
Angular HTTP Client Quick Start Tutorial
Fireship
Google Sign-In with Firestore Custom User Data
Fireship
Star Review System from Scratch with Firestore + Angular
Fireship
Angular Chatbot with Dialogflow (API.ai)
Fireship
Learn @ngrx/entity and Feature Modules
Fireship
Infinite Scroll Pagination with Firestore
Fireship
Faster Firestore via Data Aggregation
Fireship
Contentful - CMS for Angular Progressive Web Apps
Fireship
More on: AI Design Tools
View skill →Related Reads
📰
📰
📰
📰
Next.js Quietly Fixed the Prefetch Problem Nobody Wanted to Talk About
Medium · JavaScript
A Fast Request, a Fast Parse and a Slow Page
Medium · JavaScript
Tags, Releases, and Branches: A Practical Guide to Frontend Deployment
Medium · Programming
Tags, Releases, and Branches: A Practical Guide to Frontend Deployment
Medium · DevOps
🎓
Tutor Explanation
DeepCamp AI