stellar js requires following data attribute to element like:
<div data-stellar-ratio="2"></div>
However I cannot use inline html on this particular site so I'd need to use only jquery.
I tried to add data attribute with jquery but it does not seem to work. Anyone have idea why?
$(window).stellar();
$('.gallery.home .image:nth-child(2)').data('stellar-ratio', '2');