wpengine

wpengine

Welcome, Guest
Username: Password: Remember me

TOPIC: Help with grid of animated images

Help with grid of animated images 9 years 1 month ago #230

  • Colm Doyle
  • Colm Doyle's Avatar
  • Offline
  • New Member
  • Posts: 1
  • Karma: -5
Hello, I am having problems with getting a grid of animated images working as expected. The images display on a angle and I am not sure why, you can review the site here: www.wellbit.fit/home/ - PASSWORD "test"

Here is my HTML
<div class="section group">
<div class=" animated fadeIn delay2 eds-on-scroll">
<h4 class="col span_1_of_6" style="text-align: center;"><img src="http://www.wellbit.fit/wp-content/uploads/2015/10/monitor.png" alt="Complete Online Health Check">
Step 01 - Complete Online Health Check</h4>
</div>
<!-- animation-stye1 Closed-->
<div class=" animated fadeIn delay4 eds-on-scroll">
<h4 class="col span_1_of_6" style="text-align: center;"><img src="http://www.wellbit.fit/wp-content/uploads/2015/10/smart-watch.png" alt="Sync Your Wearables">
Step 02 - Sync Your Wearables</h4>
</div>
<!-- animation-stye1 Closed-->
<div class=" animated fadeIn delay6 eds-on-scroll">
<h4 class="col span_1_of_6" style="text-align: center;"><img src="http://www.wellbit.fit/wp-content/uploads/2015/10/clipboard-v2.png" alt="Set The Goals">
Step 03 - Set The Goals</h4>
</div>
<!-- animation-stye1 Closed-->
<div class=" animated fadeIn delay8 eds-on-scroll">
<h4 class="col span_1_of_6" style="text-align: center;"><img src="http://www.wellbit.fit/wp-content/uploads/2015/10/gift.png" alt="Reward Your Employees">
Step 04 - Reward Your Employees</h4>
</div>
<!-- animation-stye1 Closed-->
<div class=" animated fadeIn delay10 eds-on-scroll">
<h4 class="col span_1_of_6" style="text-align: center;"><img src="http://www.wellbit.fit/wp-content/uploads/2015/10/analytics.png" alt="Gather Employee Health Insights">
Step 05 - Gather Health Insights</h4>
</div>
<!-- animation-stye1 Closed-->
<div class=" animated fadeIn delay12 eds-on-scroll">
<h4 class="col span_1_of_6" style="text-align: center;"><img src="http://www.wellbit.fit/wp-content/uploads/2015/10/chat-v2.png" alt="Plan and Promote Health Programs">
Step 06 - Promote Health Programs</h4>
</div>
<!-- animation-stye1 Closed-->
</div>

Here is the CSS that styles the gird
/*  SECTIONS  */
.section {
	clear: both;
	padding: 0px;
	margin: 0px;
}

/*  COLUMN SETUP  */
.col {
	display: block;
	float:left;
	margin: 1% 0 1% 1.6%;
}
.col:first-child { margin-left: 0; }

/*  GROUPING  */
.group:before,
.group:after { content:""; display:table; }
.group:after { clear:both;}
.group { zoom:1; /* For IE 6/7 */ }
/*  GRID OF SIX  */
.span_6_of_6 {
	width: 100%;
}

.span_5_of_6 {
  	width: 83.06%;
}

.span_4_of_6 {
  	width: 66.13%;
}

.span_3_of_6 {
  	width: 49.2%;
}

.span_2_of_6 {
  	width: 32.26%;
}

.span_1_of_6 {
  	width: 15.33%;
}

/*  GO FULL WIDTH BELOW 480 PIXELS */
@media only screen and (max-width: 480px) {
	.col {  margin: 1% 0 1% 0%; }
	.span_1_of_6, .span_2_of_6, .span_3_of_6, .span_4_of_6, .span_5_of_6, .span_6_of_6 { width: 100%; }
}
The administrator has disabled public write access.

Help with grid of animated images 9 years 1 month ago #231

  • eLEOPARD
  • eLEOPARD's Avatar
  • Offline
  • Administrator
  • Posts: 409
  • Thank you received: 54
  • Karma: -28
Dear Colm,

Thanks a lot for using the Animate It! plugin.
The issue seems to be with the width % set. You see, the exact percentage for 6 column is 16.66% (100 / 6). However, it's set 15.33%.

I created sort of a work-around, just add the following css and make sure its below the ".span_1_of_6" rule:
.animated .col.span_1_of_6 {
    padding: 14px;
    width: 16.66%;
}

Also, add important to the "width" in media query, so it becomes:
/*  GO FULL WIDTH BELOW 480 PIXELS */
@media only screen and (max-width: 480px) {
	.col {  margin: 1% 0 1% 0%; }
	.span_1_of_6, .span_2_of_6, .span_3_of_6, .span_4_of_6, .span_5_of_6, .span_6_of_6 { width: 100% !important; }
}

Let me know if this works :)
The administrator has disabled public write access.
Time to create page: 0.055 seconds

Need Customization? Feel free to...

Contact Us

If you like these extensions, help us buy Yoga Mats :)