Resize shadow with jQuery

I am looking for a jQuery plugin that supports adding mutable shadows for shadows to divs, tables, text, etc. I just want the shadow to change when the user resizes the browser window (elements with shadows are not dragged).

I tried this plugin , but it does not seem to reduce the width of the shadow when the user narrows the browser window.

Thanks Don

+3
source share
1 answer

If the shadows are not absolutely critical, I would suggest just using CSS3 shadows. They are supported in all recent versions of major browsers except IE.

-moz-box-shadow: 4px 4px 8px #000;
box-shadow: 4px 4px 8px #000;

About: http://www.css3.info/preview/box-shadow/

, JS (.. , jQuery), , . , DOM . , , .

, , , CSS . :

http://www.alistapart.com/articles/cssdrop2/

+3

Source: https://habr.com/ru/post/1716807/


All Articles