Add a link with a translate transirion

This commit is contained in:
2020-02-27 23:05:42 +01:00
parent c9fd287609
commit e212829db5
3 changed files with 66 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
<script>
import * as fn from '../functions'
export let href = ''
export let text = ''
export let target = ''
export let rel = ''
</script>
<a {href} class="link-translate" {target} {rel}>
<slot />
<div class="text" data-text={text}>
<span>{text}</span>
</div>
</a>