I have 6 boxes with text inside that animate one by one. I was
wondering how I can combine them into an array to condense the code. I
would also like to animate the text in a similar way to the boxes to
make it look more graceful.
If anyone could help much appreciated!
<script>
$(document).ready(function() {
$('.one').animate({
opacity: 1,
height : "13em",
width : "16em"},
'200');
});
$(document).ready(function() {
$('.two').delay(200).animate({
opacity: 1,
height : "13em",
width : "16em"},
'200');
});
$(document).ready(function() {
$('.three').delay(400).animate({
opacity: 1,
height : "13em",
width : "16em"},
'200');
});
$(document).ready(function() {
$('.four').delay(600).animate({
opacity: 1,
height : "13em",
width : "16em"},
'200');
});
$(document).ready(function() {
$('.five').delay(800).animate({
opacity: 1,
height : "13em",
width : "16em"},
'200');
});
$(document).ready(function() {
$('.six').delay(1000).animate({
opacity: 1,
height : "13em",
width : "16em"},
'200');
});
</script>
<div class="row">
<div
class="purple one">
<h3
class="ukdd">Lorem Ipsum</h3>
</div>
<div class="grey
two">
<h3>Lorem
Ipsum</h3>
<p>Lorem Ipsum is simply
dummy text of the printing and typesetting
industry</p>
</div>
<div class="purple three">
<h3>Lorem Ipsum</h3>
<p>Lorem Ipsum is simply dummy text of the printing and
typesetting industry</p>
</div>
</div>
<div
class="row">
<div class="grey
four">
<h3>Lorem
Ipsum</h3>
<p>Lorem Ipsum is simply
dummy text of the printing and typesetting
industry</p>
</div>
<div class="purple five">
<h3>Lorem Ipsum</h3>
<p>Lorem
Ipsum is simply dummy text of the printing and typesetting
industry</p>
</div>
<div class="grey six">
<h3>Lorem Ipsum</h3>
<p>Lorem Ipsum is simply dummy text of the printing and
typesetting industry</p>
I was wondering how I can rid the the images of their modal links when viewed on mobile as the pics don't need to be shown any larger at that size.
I thought about hiding all the content and displaying a simplified version with display:none in the media queries but this seems as though it's long winded and using too much code.
It looks as though it's caused the links in the footer to stop being clickable. The links in the nav are clickable until you view at a smaller scale where it drops down below the header bar, and then the links stop working.
If you remove the link to the masonry css the links will work. I've also noticed the links in the footer work if the location details are removed at the bottom.
It's as if there's an invisible layer covering the centre and overlapping the links. I was wondering if this has something to do with imagesLoaded but I'm confused by this.
I've completed jQuery tutorials in codecademy but I was wondering if anyone could point me in the right direction so I can start to develop and understand forms like this where calculations are used.
Incidentally if you start to add a few products then decimals are added to the subtotal. Does anyone know how to avoid this?