using Calc for stageheight

  • Hi,

    i use this piece of code to calculate my stageheight while resizing :

    Code
    if(device.desktop, sub(destheight,stageheight, 127),);
    
    
    div(divisor,stageheight,100);
    div(destheight,divisor);
    roundval(destheight, 1);
    txtadd(destheight,get(destheight),'%');
    tween(area.height, get(destheight), 0.1);

    i want use it with calc but it confuse me,
    how do you translate properly the code ??

    Thanks

    z

    2 Mal editiert, zuletzt von zadda (8. Dezember 2016 um 15:38)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!