Started adding real content
This commit is contained in:
@@ -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; }
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user