deckdeckgo icon indicating copy to clipboard operation
deckdeckgo copied to clipboard

core: swipe and fade animation 60fps with requestAnimationFrame

Open peterpeterparker opened this issue 5 years ago • 5 comments

Affected part of DeckDeckGo

  • [X] Web Components

Feature Description

Our core components takes care of displaying the slides. The transition happening when switching slides can happens either instantly or with an animation.

This animation can either be swipe or fade.

In both cases, CSS variables are set though Javascript to apply the effects but none of these are implement with requestAnimationFrame which would enhance the quality and the smoothness of the animation to achieve 60 fps.

Use Case

I would be smoother

Getting started

git clone https://github.com/deckgo/deckdeckgo
cd deckdeckgo/core
npm i
npm run start

The animation can be set with a related attribute / property on the deckgo-deck element.

To try it out, you can modify your local deckdeckgo/core/src/index.html such as

<deckgo-deck animation="swipe">

or

<deckgo-deck animation="fade">

Code

The swipe effect finds place in the core

The fade effect happens with a Functional component so to be honest, there I am not sure how to achieve this goal. Looking forward to your inputs.

Get Started

If you need help to get started with this feature, I'll be happy to help.

Ping me: @peterpeterparker | twitter | email | slack

peterpeterparker avatar Sep 28 '20 16:09 peterpeterparker

Hi @peterpeterparker , This looks really interesting, I would love to explore more and contribute on the same :)

harshith-venkatesh avatar Oct 03 '20 20:10 harshith-venkatesh

Sure super got for it @Harshi7016 thx!

peterpeterparker avatar Oct 03 '20 20:10 peterpeterparker

@Harshi7016 are you working on that one or should I un-assign you the issue?

peterpeterparker avatar Nov 01 '20 18:11 peterpeterparker

Hi @peterpeterparker , Shall I update you about my progress in 3 days, I am extremely sorry , I got struck in other prs and forgot to update... Extremely sorry for this delay If you are ok I will be updating you soon Sorry again

harshith-venkatesh avatar Nov 01 '20 18:11 harshith-venkatesh

no worries about delay @Harshi7016, there is no rush. I was interesting about the status to get to know if someone should take over or not, so all cool. Ping me when you've got time, thx.

peterpeterparker avatar Nov 01 '20 19:11 peterpeterparker