So I got the following problem:
I got an element with this CSS ($(this) is the cloned object):
clone.css({
'width': $(this).width() + 'px',
'height': $(this).height() + 'px',
'top': $(this).offset().top - $(window).scrollTop() + 'px',
'left': $(this).offset().left + 'px',
'position': 'fixed'
});
On click I add following class:
.dupe{
top:0;
left:0;
width:100%;
height:300px;
border-radius:0;
box-shadow:none;
transition:all .3s ease-in-out;
}
That doesn't work tho, because jQuery overwrites it. I don't want to use !important.
So is there a way to tell the CSS like "now you're important and now you're not", without using !important?
cssand then applyclassstyleattributes will always take precedence.