Skip to content

Smoothing transition of centered content #76

@chorn99

Description

@chorn99

I'm not completely knowledgable in JavaScript so I need help smoothing out a transition.

My basic problem is that I am not changing the size of the content (image) but just having the slides decrease in width. I was able to get the image to be centered both in the current and non-current slides using CSS, but because the css rule of "current" does not apply to the slide until after the transition, the image looks like it is jumping to the center of the enlarged slide.

Is there a way to use JavaScript to animate this?

I've created a demo here: http://jsfiddle.net/GRvum/1/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions