Learn how to scrape websites with nightmareJS. A Simple guide on getting started with the browser automation library.
Tag Archives: javascript
Creating a toggle switch – easy
Create a simple on-off toggle switch. With HTML, JS, and CSS, That is also Accessible.
Creating an animated dismiss all icon
Creating a reusable animated dismiss all icon with JavaScript.
Unusual behaviour in Firefox when using ‘preventDefault()’ on ‘mousedown’ event
Firefox completely blocks css :active pseudo-class when using PreventDefault() on mousedown event, unlike other browsers. This is undefined behaviour, and can lead to some hard to fix bugs, especially when you had no idea Firefox implemented this.