You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make sure easing curves and shadows are on-spec #48
@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.
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.
Activity
bakgat commentedon Feb 17, 2016
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.
traviskaufman commentedon Mar 15, 2016
mdElevation Design Doc: https://docs.google.com/document/d/1W3NGSLqDZzjbBBLW2C6y_6NUxtvdZAVaJvg58LY3Q0E/edit?usp=sharing
feat(elevation): Add elevation core styles
feat(elevation): Add elevation core styles
feat(elevation): Add elevation core styles
jelbourn commentedon Apr 21, 2016
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?
5 remaining items
jelbourn commentedon Nov 4, 2016
@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.
mmalerba commentedon Nov 8, 2016
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?
jelbourn commentedon Nov 8, 2016
I hadn't seen that before. I'd consider that a "nice-to-have" for now, something we can refine later.
mmalerba commentedon Nov 14, 2016
pr for shadows: #1857
still need to do animations
thw0rted commentedon Mar 28, 2018
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:
window.screen.heightorwindow.screen.widthand divide bywindow.devicePixelRatioto get an approximate DP size6 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.
Styles for the category list and component list (angular#48)
angular-automatic-lock-bot commentedon Sep 8, 2019
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.