diff --git a/frontend/src/components/Circle/Circle.scss b/frontend/src/components/Circle/Circle.scss index d9f0e20e4..132ee283c 100644 --- a/frontend/src/components/Circle/Circle.scss +++ b/frontend/src/components/Circle/Circle.scss @@ -12,13 +12,12 @@ >svg { @extend .circleIntro; + + transform: rotate(-90deg); + transform-origin: 50% 50%; } .circle-percentage { transition: stroke-dashoffset 0.1s linear; - - // 102.5px is the radius of the circle - // translateX because the circle is rotated -90deg - transform: rotate(-90deg) translateX(calc(-102.5px * 2)); } } diff --git a/frontend/src/stories/AutoPlay.stories.tsx b/frontend/src/stories/AutoPlay.stories.tsx new file mode 100644 index 000000000..af06331be --- /dev/null +++ b/frontend/src/stories/AutoPlay.stories.tsx @@ -0,0 +1,56 @@ +import AutoPlay from '../components/Playback/Autoplay'; + +export default { + title: 'Components/AutoPlay', + component: AutoPlay, + argTypes: { + instruction: { control: 'text' }, + showAnimation: { control: 'boolean' }, + playSection: { action: 'playSection' }, + startedPlaying: { action: 'startedPlaying' }, + finishedPlaying: { action: 'finishedPlaying' }, + responseTime: { control: 'number' }, + className: { control: 'text' }, + }, + decorators: [ + (Story) => ( +