diff --git a/package-lock.json b/package-lock.json index 6196ce9..bbe1732 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "postcss": "^8.4.21", "prettier": "^2.8.0", "prettier-plugin-svelte": "^2.8.1", + "remove-markdown": "^0.5.0", "svelte": "^3.54.0", "svelte-markdown": "^0.2.3", "tailwindcss": "^3.2.6", @@ -2307,6 +2308,12 @@ "url": "https://github.com/sponsors/mysticatea" } }, + "node_modules/remove-markdown": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/remove-markdown/-/remove-markdown-0.5.0.tgz", + "integrity": "sha512-x917M80K97K5IN1L8lUvFehsfhR8cYjGQ/yAMRI9E7JIKivtl5Emo5iD13DhMr+VojzMCiYk8V2byNPwT/oapg==", + "dev": true + }, "node_modules/resolve": { "version": "1.22.1", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", diff --git a/package.json b/package.json index ec74b3c..6084dc5 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "postcss": "^8.4.21", "prettier": "^2.8.0", "prettier-plugin-svelte": "^2.8.1", + "remove-markdown": "^0.5.0", "svelte": "^3.54.0", "svelte-markdown": "^0.2.3", "tailwindcss": "^3.2.6", diff --git a/src/lib/components/PeopleList.svelte b/src/lib/components/PeopleList.svelte index 186f14c..1512345 100644 --- a/src/lib/components/PeopleList.svelte +++ b/src/lib/components/PeopleList.svelte @@ -12,18 +12,24 @@ function twitterLink(handle) { return `https://twitter.com/${handle}`; } + + function animateSpeaker (el) { + for(const e of el.target.getElementsByClassName('animate-speaker')) { + animateText({ target: e }) + } + } {#each items.map(getPerson) as item} -