|
|||
Animation unter Safari hackt Update
ich habe eine Progress Anzeige gebaut
HTML-Code:
<div id='progress'> <progress id='wait_ani' value='70' max='100'> </progress> <br> Noch zu speichern... </div> Code:
x=0; function upload_ani(){ document.getElementById('progress').style.display='block'; var intervalID = window.setInterval(myCallback, 25); } function myCallback() { document.getElementById('wait_ani').value=x; x++; if (x>100) x=0; // wieder von vorne } HTML-Code:
#progress { display:none; position:relative; width:250px; height:20px; } Nachtrag: Es liegt natürlich nicht an die JS Funktion. Ich hatte ein Bildupload programmiert, beim Absenden wird die Animation so lange gezeigt bis die neue Seite geladen wird. Nur beim Safari wird beim absenden sofort das Javascript gestoppt, daher keine Animation. Ich werde mal sehen das ich eine css3 Animation erstellen, vielleicht hat hier jemand eine gute Seite. Nachtrag2: Eine CSS3 Animation stoppt Safari leider auch. Geändert von seerose (31.03.2019 um 22:42 Uhr) Grund: ursache gefunden |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Animation zurück setzen | seerose | Javascript & Ajax | 1 | 12.03.2016 19:20 |
Div Animation opacity in Safari | Philidor | CSS | 0 | 27.08.2014 21:33 |
Safari 3.1 Windows mit Develop Menu | laborix | Offtopic | 3 | 31.05.2008 20:46 |
Safari 2 und Objektvariablen | Kurtk | Javascript & Ajax | 0 | 12.11.2007 00:08 |
3 Column Float IE,FF,Opera hui, Safari, Konq. Pfui.... | dablake | CSS | 5 | 29.05.2005 19:43 |