Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
$('#s1').hide();
$('#s3').animate({opacity: 1.0}, 3000).fadeOut('slow', function() {
$('#s1').animate(3000).fadeIn('slow', function() {
$('#s1').animate({opacity: 1.0}, 3000).fadeOut('slow', function() {
$('#s3').animate(3000).fadeIn('slow')});});});
<div onclick="blink()" id="test">Animate</div>
<script type="text/javascript">
function blink() {
var opacity = 0;
var animate = function() {
$('#test').animate({opacity: opacity}, 1500, function() {
opacity = opacity ? 0 : 1;
animate();
});
};
animate();
}
</script>
<div onclick="blink()" id="test"><span>deutsch</span><span>english</span></div>
<script type="text/javascript">
function blink() {
var o1 = $('#test span').first();
var o2 = $('#test span').next();
o2.hide();
$('#test span').css('position', 'absolute');
var animate = function() {
var c = 0;
o1.fadeOut(1500, function() {ready(++c);});
o2.fadeIn(1500, function() {ready(++c);});
};
var ready = function(a) {
if(a === 2){
var tmp = o1;
o1 = o2;
o2 = tmp;
animate();
}
}
animate();
}
</script>