mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	add fade to animated mfm tags
This commit is contained in:
		
							parent
							
								
									4c06f9a6e2
								
							
						
					
					
						commit
						be5cda6f6f
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -235,8 +235,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext<MfmEven
 | 
			
		|||
						return h(MkSparkle, {}, genEl(token.children, scale));
 | 
			
		||||
					}
 | 
			
		||||
					case 'fade': {
 | 
			
		||||
						// Dont run with reduced motion on
 | 
			
		||||
						if (!defaultStore.state.animation) {
 | 
			
		||||
						if (!useAnim) {
 | 
			
		||||
							style = '';
 | 
			
		||||
							break;
 | 
			
		||||
						}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,6 +17,7 @@ export function checkAnimationFromMfm(nodes: mfm.MfmNode[]): boolean {
 | 
			
		|||
			node.props.name === 'bounce' ||
 | 
			
		||||
			node.props.name === 'rainbow' ||
 | 
			
		||||
			node.props.name === 'sparkle' ||
 | 
			
		||||
			node.props.name === 'fade' ||
 | 
			
		||||
			node.props.name === 'followmouse') {
 | 
			
		||||
				return true;
 | 
			
		||||
			} else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue