Video Description
Explore how to build a keyboard command project that allows you to press keys on your keyboard and move an element on the page around. Great to practice and learn more about how element manipulation works and how JavaScript can be used to dynamically update element attributes and contents.
In the course we build a mini project that listens to key presses and updates an element on the page accordingly. Topics covered include.
- Create and element dynamically using JavaScript
- Listen for keyboard arrow key presses
- Track key presses and move the element accordingly
- Run a function to move and element
- Add elements to a page using JavaScript
- Create an array of elements
- Execute a list of movements on command
- Update, Delete and move elements on the page
All the codes and supporting files for this course are available at: https://github.com/PacktPublishing/DOM-Commander---A-JavaScript-Project-Course
Style and Approach
Step by step lessons - source code included