jquery - Replicating design patterns in HTML, CSS? -
suppose have following code in html -
<div id="pattern">
<span class="a">content</span>
</div>
, suppose wanted replicate , show pattern @ different positions on page. how it?
each of these pattern's have specific styling though.
it easy using jquery.
$('#pattern') .clone() .addclass('variate-styling') .appendto('#container'); this piece of code replicate pattern block, add new styling effect , put position on page.
Comments
Post a Comment