Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sfeng
· 11y ago · 0 comments
It's done with an opacity transition on the element:
https://i.imgur.com/6Wq71pH.png
Comments
[–]
ayushgta
11y ago
It is actually an after CSS selector with fixed position and a linear gradient background. Pretty clever! Here is a JS Fiddle which shows just that bit:
http://jsfiddle.net/wyx7zogo/