This fork by rebane2001 is an improved version of the script!
This script will get the computed background color of your body, and then will create shadows darker than your background (if you have a light background), or lighter than your background (if you have a dark background). If the body does not have a background, the script will take 160
as the default value for red, green and blue.
It will then add a border
, a box-shadow
, a padding
and a margin
to each element of your page, and will use the cool rotate3d
css function to tilt your website.
Follow these steps to make it work on any website:
- Create a new bookmark
- Paste the code inside
location
- Visit a website
- Click on the bookmark
Watch this video for a quick demo.
This script will not work with cors stylesheets, like the one on codepen. You will get this error:
Love it - while I dont do much webdev I loved this feature of firefox and I am sad to see it go for no clear reason, thanks for putting this together!