顺时针旋转Svg元素

时间:2016-05-17 10:44:54

标签: javascript jquery svg

<svg>
       <path xmlns="http://www.w3.org/2000/svg" fill="#012d26" d=" M 81.16 38.23 C 83.16 42.68 85.01 47.20 87.05 51.63 C 89.59 57.31 91.99 63.04 94.50 68.73 C 107.87 65.61 122.71 76.15 123.25 90.07 C 124.68 103.15 112.95 115.43 99.93 115.20 C 87.82 115.97 76.31 106.03 75.34 93.93 C 74.34 84.23 80.19 74.37 89.14 70.51 C 87.75 64.47 86.08 58.49 84.69 52.45 C 83.60 47.69 82.33 42.97 81.16 38.23 Z"/>
    </svg>

我想像时钟一样顺时针旋转它。 BUt使用transform:rotate(10deg)将移动其基点。我想保持点数固定。

1 个答案:

答案 0 :(得分:2)

使用# A2lix Configuration a2lix_translation_form: locale_provider: default locales: "%languages%" # locales available for the forms default_locale: "%locale%" # default locale required_locales: [en, fr] # requireds locales (not all fields will be required - only the ones with required true) manager_registry: doctrine templating: "A2lixTranslationFormBundle::default.html.twig" &amp; transform喜欢这样:

transform-origin

JSFiddle

相关问题