Just add some animation c var seconds = 5; var madlibs = { 'a': ['eat pie', 'jump rope', 'write code', 'do things'], 'b': ['a fork', 'your friends', 'the quickness', 'other things'] }; var madlibA = document.getElementById('a'); var madlibB = document.getElementById('b'); function rand(x) { return Math.floor(Math.random() * x); } function change() { var txtA = madlibs['a'][rand(madlibs['a'].length)]; var txtB = madlibs['b'][rand(madlibs['b'].length)]; madlibA.innerHTML = txtA; madlibB.innerHTML = txtB; madlibA.classList.remove('flip'); madlibB.classList.remove('flip'); } function reveal() { madlibA.classList.add('flip'); madlibB.classList.add('flip'); setTimeout(change, 500); // half-second like in CSS } setInterval(reveal, seconds * 1000); .madlib { transition: all 0.5s linear; font-size:1rem; color:black; } .flip { font-size:0px; color:transparent; }

we make it easy to do things with other things.

 

Google

 

google-site-verification: google13ecc71a943e16a5.html
Am 3. November findet ein Basar statt.
Weihnachtsfeier in der Kirche - buchen Sie heute!
Osterfest in der Kirche Riggisberg. Finden Sie unter xxx weitere Informationen.