24.06.2013, 18:00
@JH97
Welche Version hast Du denn geladen ?
Welche Version hast Du denn geladen ?
Zitat:/*****forecast*****/
#pos_forecast {
position:absolute;
top:20px;
left:10px;
width:300px;
height:55px;
background: rgba(0,0,0,0.3);
border-radius: 10px;
z-index:1;
}
#pos_forecast_back {
position:absolute;
top:20px;
left:10px;
width:300px;
height:55px;
background: rgba(0,0,0,0.3);
border-radius: 10px;
z-index:1;
}
Zitat:sun_layer=0;
if(pTranslate <= 45) {
sun_layer = pTranslate * .022;
document.getElementById("sun").style.opacity=" "+sun_layer+" " ;
}
else if(pTranslate > 45 && pTranslate < 285) {
document.getElementById("sun").style.opacity="1.0";
}
else {
sun_layer = (320 - pTranslate) * .028;
document.getElementById("sun").style.opacity=" "+sun_layer+" " ;
}
Zitat:UniAW.css
#sunorange = 24
#sun = 22
#sunray = 21
#sunrayorange = 23
und in der UniAW.js:
sunorange_layer=0;
sunrayorange_layer=0;
if(pTranslate <= 45) {
sun_layer = 1 - pTranslate * .022;
sunray_layer = 1 - pTranslate * .022;
document.getElementById("sunorange").style.opacity=" "+sunorange_layer+" " ;
document.getElementById("sunrayorange").style.opacity=" "+sunrayorange_layer+" " ;
}
else if(pTranslate > 45 && pTranslate < 285) {
document.getElementById("sunorange").style.opacity="0";
document.getElementById("sunrayorange").style.opacity="0";
}
else {
sun_layer = 1 - (320 - pTranslate) * .028;
document.getElementById("sunorange").style.opacity=" "+sunorange_layer+" " ;
document.getElementById("sunrayorange").style.opacity=" "+sunrayorange_layer+" " ;
}
document.getElementById("sunorange").style.webkitTransform = "translateX("+pTranslate+"px)";
document.getElementById("sun").style.webkitTransform = "translateX("+pTranslate+"px)";
document.getElementById("sunrayorange").style.webkitTransform = "translateX("+pTranslate+"px)";
document.getElementById("sunray").style.webkitTransform = "translateX("+pTranslate+"px)";
}
(29.06.2013, 12:13)buck schrieb: Hallo
ihr seit so geil.
Wann können wir mal euer Werk begutachten?
mfg buck