The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Small jQuery plugin dilemma Reply To: Small jQuery plugin dilemma


I think you’re kind of missing the point of the original question.

I’m not missing anything.

Instead of just using CSS, you’re cloning DOM elements, reading styles, setting styles, all with JavaScript.

I can style each element independently.

// JavaScript

// CSS
.my-cool-pic {} {}

The whole point of the plugin is to make something fixed. This way you get both alternatives controlled via CSS.

In my mind:

JavaScript (Interactivity)
CSS (Presentation)