Skip to content

Make sure easing curves and shadows are on-spec #48

Closed

Description

@jelbourn

Current easing curves and shadows are pulled from Angular 1 version. We need to double check that these reflect the current state of the spec.

Activity

  1. added
    P2
    on Jan 28, 2016
  2. added this to the alpha.1 milestone on Jan 28, 2016
  3. bakgat commented on Feb 17, 2016

    @bakgat

    In _shadows.scss this link is provided as documentation for shadows
    http://google.com/design/spec/what-is-material/objects-in-3d-space.html

    In the new spec the link should be http://www.google.com/design/spec/what-is-material/elevation-shadows.html

    I think there are differences in shadows.
    eg For raised buttons it states 2dp elevation, 8dp on active.

    elevation diagram

  4. traviskaufman commented on Mar 15, 2016

    @traviskaufman
    Contributor
  5. modified the milestones: alpha.2, alpha.1 on Mar 17, 2016
  6. modified the milestones: alpha.2, alpha.3 on Apr 4, 2016
  7. jelbourn commented on Apr 21, 2016

    @jelbourn
    ContributorAuthor

    Done for elevation.
    @traviskaufman did you have any feedback on easing curves, or should we be able to grab what we need from the spec?

  8. 5 remaining items

  9. removed this from the before beta milestone on Nov 4, 2016
  10. added
    P3
    and removed
    P2
    on Nov 4, 2016
  11. jelbourn commented on Nov 4, 2016

    @jelbourn
    ContributorAuthor

    @mmalerba the task here is to make sure all the timings and curves we're using are on-spec and shared between components. This is a lower-priority item for beta.

  12. mmalerba commented on Nov 8, 2016

    @mmalerba
    Contributor

    Sorry, didn't mean to close this. Interesting part of the spec related to animations is dynamic durations: https://material.googleplex.com/motion/duration-easing.html#duration-easing-dynamic-durations (the idea that the duration changes based on the size of your device). Is this something we want to include in our implementation?

  13. jelbourn commented on Nov 8, 2016

    @jelbourn
    ContributorAuthor

    I hadn't seen that before. I'd consider that a "nice-to-have" for now, something we can refine later.

  14. mmalerba commented on Nov 14, 2016

    @mmalerba
    Contributor

    pr for shadows: #1857

    still need to do animations

  15. thw0rted commented on Mar 28, 2018

    @thw0rted

    Hello from the future! I don't know if anybody is still subscribed, but I came here to find out how material2 handles changing its animation timing based on device type (as the spec requires) -- looks like maybe the answer at this time is that you don't?

    Should I open a new ticket to bring timing in line with the spec or would it be better to reopen this one? I am still trying to figure out how to actually decide what timing to use in my own animations. Best I have right now is:

    • if touch isn't supported, use desktop timing (150-200ms)
    • otherwise, find the smaller of window.screen.height or window.screen.width and divide by window.devicePixelRatio to get an approximate DP size
    • Compare DP size to an arbitrary cutoff (say, 6 in * 96 DP/in) to decide if we use phone timings (~300ms) or tablet timings (~390ms).

    It's far from perfect but I don't know if we can get any better information to make the decision.

  16. angular-automatic-lock-bot commented on Sep 8, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  17. locked and limited conversation to collaborators on Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions