question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom animation on slide (image transitions) apart from slide

See original GitHub issue

I’m trying to add 3 different types of animation for the image slide animation.

In the source I see that your setting a transition style can this be modified to achieve fade, zoom or any other animation transition on image slide?

   this.setState({
      previousIndex: currentIndex,
      currentIndex: nextIndex,
      offsetPercentage: 0,
      style: {
        transition: `transform ${this.props.slideDuration}ms fade-in`
      }
    });

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
xiaolincommented, Nov 19, 2018

@solancer I’ve adjusted the transition property to be applied to all transitions in v0.7.15

   this.setState({
      previousIndex: currentIndex,
      currentIndex: nextIndex,
      offsetPercentage: 0,
      style: {
        transition: `all ${this.props.slideDuration}ms ease-out`
      }
    });

This way you can override the css classes and all transitions will take affect.

e.g. overriding the following css will allow you to add the fade affect

.image-gallery-slide {
  opacity: 0;
}
.image-gallery-slide.center {
  opacity: 1;
}
2reactions
xiaolincommented, Aug 31, 2017

@nishtacular you can adjust the transition to only transition on opacity removing the transform transition.

.image-gallery-slide {
  opacity: 0;
  transition: opacity 450ms ease-out !important;
}

This will remove the slide effect, and give you the fadeIn transition you want.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slide Transitions and Animations – Presentation Software
Custom Animation. Click on the Animation Pane in the Advanced Animation group on the Animations tab and the animation pane appears to the...
Read more >
5 ways to make the most of Google Slides animation features
Transitions are animations added in between slides to help move smoothly between different ... Click the text or image you want to animate....
Read more >
Animations versus transitions in a slide show - Microsoft Support
An animation is a special effect that applies to a single element on a slide such as text, a shape, an image, and...
Read more >
Using Animation and Slide Transition Effects on PowerPoint ...
Adding movement to your slides through the use of animation or slide transition effects is risky. Movement distracts the audience from your message....
Read more >
Best Slide Transitions And Animations For Business ...
Animations, on the other hand, refer to object or element animation. You can animate the text, any charts or tables, images, shapes, icons,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found