[added] combineStyleStreams to views-dom
ClosedPublic

Authored by appsforartists on Sep 12 2017, 10:57 PM.

Details

Summary

Since most of the properties that change during an animation are styles, I've been exploring a consistent shape for styles, e.g.:

{
  translate$,
  borderRadius$,
  scale$,
  rotate$,
  opacity$,
  willChange$,
}

This function takes that dictionary and returns a stream of styles that can be applied directly to a DOM element:

{
  transform: 'translate(_px, _px) rotate(_rad) scale(_)',
  borderRadius: '_px',
  willChange: 'transform opacity',
}

Diff Detail

Repository
R13 material-motion/material-motion-js
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
Restricted Application added a reviewer: O2: Material Motion. · View Herald TranscriptSep 12 2017, 10:57 PM
Restricted Application added a project: Material Motion. · View Herald Transcript
Restricted Application added a reviewer: O3: Material JavaScript platform reviewers. · View Herald Transcript
Restricted Application added a reviewer: Material Motion. · View Herald Transcript
Restricted Application failed to build Restricted Buildable!Sep 12 2017, 10:59 PM
featherless accepted this revision.Sep 22 2017, 9:10 AM
This revision is now accepted and ready to land.Sep 22 2017, 9:10 AM