Download resources/views/default/components/split-words.blade.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/resources/views/default/components/split-words.blade.php
- Command line
-
hf download hf://pnacorp/magicai/resources/views/default/components/split-words.blade.php
-
curl -L -o split-words.blade.php https://huggingface.co/pnacorp/magicai/resolve/main/resources/views/default/components/split-words.blade.php
546 Bytes
| $splitted_text = ''; | |
| $words = explode(' ', $text); | |
| $transition_delay = ''; | |
| $i = 0; | |
| foreach ( $words as $key => $word ) { | |
| $space = $key > 0 ? ' ' : ''; | |
| if ( $transitionDelayStart > 0 || $transitionDelayStep > 0 ) { | |
| $transition_delay = 'transition-delay:' . $transitionDelayStart + ($i * $transitionDelayStep) . 's'; | |
| } | |
| $splitted_text .= sprintf( '%2$s<span class="inline-flex lqd-split-text-words [background:inherit]" style="%3$s">%1$s</span>', $word, $space, $transition_delay ); | |
| $i++; | |
| } | |
| {!! $splitted_text !!} |