wpengine

wpengine

Welcome, Guest
Username: Password: Remember me

TOPIC: Animate a div

Animate a div 8 years 3 weeks ago #459

  • Martin
  • Martin's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: -3
Hi,
Great extension! Can you tell me if it is possible to animate a div when the content changes size please? In the link below under the main menu at the top (desktop view) I have the roksprocket extension displaying reviews. When the content changes from 1 line to 2 lines the height jumps. When the height changes I would like it to be animated smoothly. Hope I'm making sense. I am using Gantry 5. I know there must be a way but a little braindead at the moment.

www.vineinnclent.com/upgrade/

Think it may be a transition I need to add to the container. Any ideas please?
Last Edit: 8 years 3 weeks ago by Martin.
The administrator has disabled public write access.

Animate a div 8 years 3 weeks ago #460

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

We have checked your site however we do not see the reviews section ( roksprocket extension ).
Could you please check?
Last Edit: 8 years 3 weeks ago by eLEOPARD.
The administrator has disabled public write access.

Animate a div 8 years 3 weeks ago #461

  • Martin
  • Martin's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: -3
Hi,
Sorry, it was disabled. I have enabled it at the top now. It still jumps. If I can get the divs below to scroll smoothly instead of jumping I would like to replicate the effects throughout the website.
Regards, Mart
The administrator has disabled public write access.

Animate a div 8 years 3 weeks ago #462

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

This issue is I am afraid, from the roksprocket's end. I don't think Animate It!, or any other similar plugin would be able to resolve the issue. We have tested some other CSS solutions as well (an example here for smooth height change: jsfiddle.net/MBD6z/), but it's not working.

A possible solution would be to add a minimum height to the DIV, try putting this code in your style.css:
.sprocket-headlines ul{
    min-height: 140px;
}

This would set the height to 140px for all the DIVs, So the height would be fixed and no jump would occur.
Please let me know if I you have some other issue.
The administrator has disabled public write access.
Time to create page: 0.233 seconds

Need Customization? Feel free to...

Contact Us

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