souporserious/react-motion-ui-pack

use transform attributes for SVG elements in IE

Open

#59 创建于 2016年9月21日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (40 fork)batch import
bughelp wanted

仓库指标

Star
 (628 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Regular transforms do not work in IE. Let's check if the element is an SVG and add it directly. Could look into coordinating everything into a matrix.

Need to take transform-origin into account: http://stackoverflow.com/questions/6711610/how-to-set-transform-origin-in-svg

Maybe we can learn from Anime.js here: https://github.com/juliangarnier/anime/blob/master/anime.js#L352-L357

贡献者指南