Skip to content

Commit f667f40

Browse files
committed
Remove center-in
1 parent 9ca9f51 commit f667f40

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/preview/webcomponents/text/HighlightAnimation.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface HighlightProps {
99
duration?: number;
1010
repeat?: boolean;
1111
highlightColor?: string;
12-
direction?: 'left-to-right' | 'right-to-left' | 'center-out' | 'center-in';
12+
direction?: 'left-to-right' | 'right-to-left' | 'center-out';
1313
className?: string;
1414
}
1515

@@ -37,9 +37,6 @@ export const HighlightAnimation: React.FC<HighlightProps> = ({
3737
case 'center-out':
3838
clipPath = 'inset(0 50% 0 50%)';
3939
break;
40-
case 'center-in':
41-
clipPath = 'inset(0 0 0 0)';
42-
break;
4340
default:
4441
clipPath = 'inset(0 100% 0 0)';
4542
}
@@ -143,7 +140,7 @@ export class HighlightComponent extends HTMLElement {
143140
duration: Number(this.getAttribute('duration')) || 1000,
144141
repeat: this.hasAttribute('repeat'),
145142
highlightColor: this.getAttribute('highlight-color') || '#ffff00',
146-
direction: (this.getAttribute('direction') as 'left-to-right' | 'right-to-left' | 'center-out' | 'center-in') || 'left-to-right',
143+
direction: (this.getAttribute('direction') as 'left-to-right' | 'right-to-left' | 'center-out') || 'left-to-right',
147144
};
148145

149146
this.rootElm.render(

0 commit comments

Comments
 (0)