1. #1
    Sencha User
    Join Date
    Aug 2013
    Posts
    1
    Vote Rating
    0
    MosephJoe is on a distinguished road

      0  

    Default Is Javascript Necesarry for simple animations ?

    Is Javascript Necesarry for simple animations ?


    Hello,

    I have made a small animation (like a continuously bouncing ball). It should not need any Javascript to work. But when I remove the JS controller the image does not even display.

    Is there a way to export simple CSS-only animations? And if not is there a proper way to remove the JavaScript from animations that don't require it?


    Thanks

  2. #2
    Sencha - Architect Dev Team
    Join Date
    Apr 2012
    Posts
    247
    Vote Rating
    22
    miro.bojic will become famous soon enough miro.bojic will become famous soon enough

      0  

    Default


    Hi MosephJoe,

    Animator exports include a lightweight JS for switching between scenes and timelines, and handling any interaction that you might have added to your animation. The JS controller triggers the animation by setting which scene should run at the beginning, so if you remove it, no scene will be run - this is why you animation appears not to be working after manually removing the controller.

    If you only need CSS keyframe description, you can open the HTML file after export and locate @keyframes CSS line. To make it easier to spot, you can give the object in question (in your example the bouncing ball) an easy to identify ID under base-object->general->id.

  3. #3
    Sencha User
    Join Date
    Aug 2013
    Posts
    3
    Vote Rating
    0
    PricePeter is on a distinguished road

      0  

    Default


    JS is really fit for simple animation in fact i already seen some animation stuff using JS.

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi