HTML, CSS and JavaScript for Beginners
Events
A course by Yannick Gregoire , Creative Developer
About the video: Events
Overview
“Time to connect the last dot! In this lesson, I will show you how we can listen for events and call a function when the user moves the mouse.”
In this video lesson Yannick Gregoire addresses the topic: Events, which is part of the Domestika online course: HTML, CSS and JavaScript for Beginners. Learn the fundamentals of creative web design to build interactive sites from scratch using HTML, CSS, and JavaScript.
Partial transcription of the video
“So in this lesson, I'll teach you on how to react to user interactions. For example, when users move their mouse, Let's see how that goes. So for this element here to animate, We want to listen for the mouse event to move. because we want to get the position of the mouse cursor. So we can change the width of this. section here accordingly. So... How do we add an event listener. Well, it's actually pretty straightforward. We can target the window object here. and then say, Add Event listener. And then this function, takes two arguments. First one is the kind of event we should listen for and...”
This transcript is automatically generated, so it may contain mistakes.
Course summary for: HTML, CSS and JavaScript for Beginners
-
Category
Web & App Design -
Areas
CSS, HTML, JavaScript, Programming, Web Design, Web Development

Yannick Gregoire
A course by Yannick Gregoire
Yannick Gregoire is an Amsterdam-based creative developer. He originally studied multimedia design and later gravitated towards coding before combining both to start his own web design and development practice. He loves the intersection of logic and aesthetics that is intrinsic in his work, connecting the structure, flow, and timing of his websites for practical yet attractive results.
Since launching his career, Yannick has collaborated with brands like Mitsubishi, Canon and Sony. He has a particular passion for pairing with individuals and organizations that have a positive social impact, which has led him to build platforms for the Dutch Red Cross and N-Ost: Climate in Central Asia.
- 98% positive reviews (193)
- 13,334 students
- 22 lessons (2h 58m)
- 26 additional resources (6 files)
- Online and at your own pace
- Available on the app
- Audio: English, Italian, Portuguese
- English · Spanish · Portuguese · German · French · Italian · Polish · Dutch
- Level: Beginner
- Unlimited access forever