The CSS Ninja

thecssninja.com · Personal blog · on HN since 2009

A front-end developer writes about CSS, JavaScript, and browser features such as drag and drop, the File API, and event handling.

What HN saysHN links it for technical details on browser behavior, such as pointer events and scrolling performance and how handleEvent works with addEventListener.
19HN people shared it
2linked it in comments
44stories submitted
433story points
13 years agolast shared
2009people per year2026

Most-shared posts

  1. 1
    Font Dragr: A drag and drop font tester
    3 people · 5 points · first shared 2009 · discussion on HN
  2. 2
    Pure CSS collapsible tree menu
    2 people · 87 points · first shared 2010 · 17 comments on HN
  3. 3
    Getting fancy with the console
    2 people · 23 points · first shared 2011 · 5 comments on HN
  4. 4
  5. 5
    JS style element injection quirks in IE
    2 people · 4 points · first shared 2011 · discussion on HN
  6. 6
    Drag and drop file uploading using JavaScript
    2 people · 3 points · first shared 2009 · discussion on HN
  7. 7
    The File API has changed
    2 people · 3 points · first shared 2009 · discussion on HN
  8. 8
    AddEventListener, handleEvent and passing objects
    2 people · 1 points · first shared 2012 · discussion on HN
  9. 9
    60fps scrolling using pointer-events: none
    1 people · 104 points · first shared 2013 · 32 comments on HN
  10. 10
    Drag out files like Gmail
    1 people · 47 points · first shared 2010 · 6 comments on HN
  11. 11
    Futurebox, lightbox without the JavaScript
    1 people · 45 points · first shared 2009 · 17 comments on HN
  12. 12
    Slides: HTML5 Drag & Drop and Friends
    1 people · 31 points · first shared 2011 · 3 comments on HN
  13. 13
    The H5F library, emulate the HTML5 forms chapter
    1 people · 17 points · first shared 2010 · discussion on HN
  14. 14
    Web Notifications
    1 people · 10 points · first shared 2010 · discussion on HN
  15. 15

What HN people wrote when they linked it

ahrjay · 2013-12-10
According to a few people both IE11[1] and Firefox[2] disable hit testing on scroll if you don't move your cursor while scrolling. [1] http://www.thecssninja.com/javascript/pointer-events-60fps/comment-pag… [2] http://www.thecssninja.com/javascript/pointer-events-60fps/comment-pag…
b3tta · 2012-12-31
When using addEventListener, "this" is not necessarily bound to the DOM node. You can also pass an Object whith a "handleEvent" function as attribute, instead of directly passing a function. You can read more about it for instance here: http://www.thecssninja.com/javascript/handleevent

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close