Here's an example for trying to set the width of a block div, help! need to make responsive width
function an() { $("div").click(function() { $("div").animate({ height: '466', margin: '-10', borderRadius: '0', width: 'window.innerWidth' }, 555); }); Here's an example for trying to set the width of a block div, help! need to make responsive width
function an() { $("div").click(function() { $("div").animate({ height: '466', margin: '-10', borderRadius: '0', width: 'window.innerWidth' }, 555); }); I decided using css properties set to 100%
function an() { $("div").click(function() { $("div").animate({ height: '100%', width: '100%', margin: '-10', borderRadius: '0' }, 555); }); Source: https://ru.stackoverflow.com/questions/738313/
All Articles