Best of HTML — January 2024
- 1
- 2
- 3
- 4
freeCodeCamp·2y
JavaScript Game Dev Tutorial – Build Gorillas with HTML Canvas + JavaScript
This post is a tutorial on how to create a modern version of the game Gorillas using JavaScript and the HTML canvas element. It covers the background of the game, project setup, overview of the game logic, drawing the scene, fitting the size of the city to the browser window, aiming the bomb, and animating the bomb's flight. The tutorial also includes info panels showing the angle and velocity of the throw, and covers hit detection and celebrating the winning player.
- 5
- 6
- 7
- 8
- 9
asayer·2y
Pushing the Limits of Styling: New and Upcoming CSS Features
This post explores new and upcoming CSS features such as advanced selectors, text and layout adjustments, color manipulation, nesting and scoping, and functional additions. It discusses the benefits and use cases of container queries, style queries, the :has() selector, text-wrap: balance, dynamic viewport units, subgrid, wide-gamut color spaces, color-mix(), nesting, and scoped styles. The post also mentions the browser compatibility of these features.
- 10
LogRocket·2y
Build an off-canvas menu with <dialog> and web components
Learn how to build an off-canvas menu using the <dialog> element and web components. Ensure accessibility and enhance user experience by following the steps provided. Style the menu using CSS to achieve desired animations and positioning.
- 11
- 12
- 13
freeCodeCamp·2y
How to Use the <input> Element to Access a Mobile Device's Camera
Learn how to use the <input> element to access a mobile device's camera. Understand the type and capture attributes, limitations and considerations for video capture, and alternative approaches. Discover practical implementation examples and enhance the functionality of your web applications.