Join Joe Marini for an in-depth discussion in this video Building an image slideshow, part of Learning HTML Canvas.
- [Lecturer] Alright, we've reached the point in the course…where we can use what we've learned about the canvas,…to start building some real, live useful stuff.…One of the first things that we're going…to build is an image slide show.…So first we'll take a look at what the slideshow looks…like when it is finished.…So, I'm going to go out to my folder and in…my examples folder under slideshow, I'm going to open…up slideshow finished in the browser,…and this is a fairly typical rotating image slideshow.…
So you can see that the image changes every few seconds.…And there's four individual images and when…we reach the last one, after a few seconds,…it goes back to the first.…Alright, so let's see how to go and build this.…Alright, here in VS code, I'm going to open…up the slideshow start file and I've already got…some code in place, here in the file.…So here at the top of the code, I've got some variables…that are going to control how the slideshow works.…
So this array has all the images…that appear in the slideshow.…
Author
Released
11/26/2018- Canvas examples
- Drawing shapes, arcs, paths, and curves
- Drawing text
- Drawing shadows, patterns, and gradients
- Using clipping paths
- Displaying images and video
- Transforming objects with scaling and rotation
- Manipulating raw pixels
- Applying transitions
- Creating animations
Skill Level Intermediate
Duration
Views
Related Courses
-
Vanilla JavaScript: Animations
with Joseph Labrecque1h 1m Intermediate -
Learning SVG
with Morten Rand-Hendriksen2h 30m Beginner
-
Introduction
-
1. Overview of Canvas
-
Interesting canvas examples2m 41s
-
The canvas element5m 27s
-
The canvas drawing context4m 57s
-
-
2. Basic Canvas Drawing Techniques
-
Colors and styles3m 25s
-
Rectangles3m 59s
-
Lines8m 50s
-
The canvas state3m 29s
-
Arcs4m 24s
-
Paths3m 18s
-
Bezier and quadratic curves4m 48s
-
Drawing text6m 23s
-
-
3. Complex Canvas Drawing
-
Drawing shadows5m 15s
-
Using patterns6m 5s
-
Using gradients5m 24s
-
Images and video5m 51s
-
Clipping paths3m 45s
-
-
4. Advanced Drawing APIs
-
Using translate2m 53s
-
Using scaling3m 19s
-
Using rotation4m 48s
-
Custom transformations4m 55s
-
Compositing and globalAlpha2m 58s
-
Manipulating raw pixels5m 51s
-
-
5. Practical Examples
-
Building an image slideshow3m 52s
-
Using smooth transitions4m 30s
-
Basic animation4m 40s
-
Double-buffered animation8m 17s
-
-
Conclusion
-
Next steps56s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Building an image slideshow