jquery - html string into css - how to? -
i using plax jquery plugin, uses html-string: data-xrange="" data-yrange=""
here's fiddle of project: http://jsfiddle.net/4krdl/
i responsive, i've did. problem now, when window minimized, data-xrange="" data-yrange=""
-string makes elements move much, because of window size.
i not great @ jquery here's question(s): possible adjust data-xrange="" data-yrange=""
either css or jquery? , how done?
if element has id (or class - doesn't matter), jquery , change attribute:
$('#your-element') .attr('data-xrange', 'new value') .attr('data-yrange', 'new value'); // can dynamically redefine range of layer // running plaxify() on again. $('#your-element').plaxify();
Comments
Post a Comment