javascript - How to chage width 1024px to 100% in js script -
javascript - How to chage width 1024px to 100% in js script -
<script> $(function(){ var slider = new beaverslider({ structure: { container: { id: "my-slider", width: '1024', height: 520, } }, content: { images: [ "images/slider/1.jpg", "images/slider/2.jpg", "images/slider/3.jpg", "images/slider/4.jpg", "images/slider/5.jpg", "images/slider/7.jpg", "images/slider/8.jpg", ] }, animation: { effects: effectsets["slider: big set 2"], interval: 1000 } }); }); </script>
you can seek screen.width
instead of 100% asked.
... width: screen.width, ...
javascript
Comments
Post a Comment