Started adding real content

This commit is contained in:
2020-04-24 19:32:25 +02:00
parent cd06ac2dd9
commit 4571ce37b4
4 changed files with 33 additions and 103 deletions

View File

@@ -1,13 +1,15 @@
const Typed = require('typed.js');
document.addEventListener("turbolinks:load", function () {
new Typed('.backends-cycler', {
strings: ['Google Sheets', 'Airtable', 'Google Sheets', 'Airtable'], // smoother loops
loop: true,
typeSpeed: 100,
backSpeed: 40,
backDelay: 1400,
smartBackspace: true,
startDelay: 800,
onBegin: (typed) => { typed.currentElContent = typed.el.innerText; }
document.querySelectorAll('.backends-cycler').forEach( el => {
new Typed(el, {
strings: ['Google Sheets', 'Airtable', 'Google Sheets', 'Airtable'], // smoother loops
loop: true,
typeSpeed: 100,
backSpeed: 40,
backDelay: 1400,
smartBackspace: true,
startDelay: 800,
onBegin: (typed) => { typed.currentElContent = typed.el.innerText; }
});
});
});