Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation when changing months #87

Closed
gpbl opened this issue Nov 13, 2015 · 3 comments
Closed

Animation when changing months #87

gpbl opened this issue Nov 13, 2015 · 3 comments

Comments

@gpbl
Copy link
Owner

gpbl commented Nov 13, 2015

The input's date picker in Chrome has a nice animation when browsing between months. I'd like to add something similar to the react-day-picker:

calendar-animations

  • it wouldn't work with numberOfMonths greater then 1
  • it should be optional, e.g. by setting a new prop animate
@hnqlv
Copy link

hnqlv commented Nov 19, 2015

@gpbl this would be amazing! Do you have any plans in mind of how to tackle this?

@gpbl gpbl added the help wanted Extra attention is needed label Dec 4, 2015
@gpbl gpbl added breaking change and removed discussion help wanted Extra attention is needed labels Jun 12, 2017
@gpbl
Copy link
Owner Author

gpbl commented Jun 17, 2017

This issue is stale and I don't think we will add animation soon, so I'm closing this.

@gpbl gpbl closed this as completed Jun 17, 2017
@anoopgq
Copy link

anoopgq commented Aug 1, 2019

Use this style for animating the react-day-picker

.DayPickerInput-OverlayWrapper {
    -webkit-animation-name: slideIn;
    animation-name: slideIn;
    animation-duration: 0.3s;
    -webkit-animation-duration: 0.3s;
    animation-fill-mode: both;
    -webkit-animation-fill-mode: both;
    z-index: 90;
}

@keyframes slideIn {
  0% {
      transform: translateY(1rem);
      opacity: 0;
  }
  100% {
      transform: translateY(0rem);
      opacity: 1;
  }
  0% {
      transform: translateY(1rem);
      opacity: 0;
  }
}

@-webkit-keyframes slideIn {
  0% {
      -webkit-transform: transform;
      -webkit-opacity: 0;
  }
  100% {
      -webkit-transform: translateY(0);
      -webkit-opacity: 1;
  }
  0% {
      -webkit-transform: translateY(1rem);
      -webkit-opacity: 0;
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants