javascript - How to define exact part of screen that is visible + scrolling animations -


i'm new sort of things , have couple issues. hope can point me in right direction because have lost lot of hair on already... :-)

url: click here

my issues: 1)how define exact "view" (part of screen - tv screen specific) eg. animations visible in part of screen? example link should visible specific position specific position think solve issues have premature execution of animation. maybe can point me in right direction?

i have implemented superscrollorama scrolling animations.

2)when reverse scrolling doesn't while "reverse" property explicitly set true. why?

3)in firefox seems working ok, in chrome looks animation done before div comes view. why? how can fix this? same in ie...

4)i want spin div id "spin-it" first/left golden frame, how can specify exact right scroll position scroll & exact right position?

maybe these animations should better done without using superscrollorama?

it handy know screen resolution 1366*768. i'm planning fix/check other resolutions once & running.

thanks in advance!! kind regards

edit: test.html

    <body>     <script>     $(document).ready(function(){         $('#film').show(3000);         //superscroll         var controller = $.superscrollorama({             triggeratcenter: false,             playoutanimations: true,             reverse: true,         });          if($("#film:visible")){         controller.addtween('#fade-it', tweenmax.from( $('#fade-it'), 5, {css:{opacity: 0}}));         controller.addtween('#fly-it', tweenmax.from( $('#fly-it'), 10, {css:{left:'500px'}, ease:quad.easeinout}));             controller.addtween('#spin-it', tweenmax.from( $('#spin-it'), .25, {css:{opacity:0, rotation: 720}, ease:quad.easeout}));         }     });     </script>      <div class="container"></div>      <div class="content" style="background-color:#000000">     <img id="film" src="img/totaalaf_klein.jpg"/>     </div>      <div class="link1" id="fade-it">         <a href = "http://www.google.be">test link</a>     </div>      <div class="wieflp" id="fly-it">         <div class="textkader" >             <p class="bigtext">             lorem ipsum dolor sit amet, consectetuer adipiscing elit. aenean commodo ligula eget dolor. aenean massa. cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. nulla consequat massa quis enim. donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. in enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. nullam dictum felis eu pede mollis pretium. integer tincidunt. cras dapibus. vivamus elementum semper nisi. aenean vulputate eleifend tellus. aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus.             </p>         </div>     </div>      <div class="test" id="spin-it">         <img src="img/testing.png"/>     </div>      </body>     </html> 

for reason code not display in there it's refs jquery plugins , superscrollorama , like.

style.css

     html, body, div, span, applet, object, iframe,     h1, h2, h3, h4, h5, h6, p, blockquote, pre,     a, abbr, acronym, address, big, cite, code,     del, dfn, em, img, ins, kbd, q, s, samp,     small, strike, strong, sub, sup, tt, var,     b, u, i, center,     dl, dt, dd, ol, ul, li,     fieldset, form, label, legend,     table, caption, tbody, tfoot, thead, tr, th, td,     article, aside, canvas, details, embed,      figure, figcaption, footer, header, hgroup,      menu, nav, output, ruby, section, summary,     time, mark, audio, video {         margin: 0;         padding: 0;         border: 0;         font-size: 100%;         font: inherit;         vertical-align: baseline;     }     /* html5 display-role reset older browsers */     article, aside, details, figcaption, figure,      footer, header, hgroup, menu, nav, section {         display: block;     }     body {         line-height: 1;     }     ol, ul {         list-style: none;     }     blockquote, q {         quotes: none;     }     blockquote:before, blockquote:after,     q:before, q:after {         content: '';         content: none;     }     table {         border-collapse: collapse;         border-spacing: 0;     }       body {font-family: sans-serif;}         #film{         display:none;     }      .content {         border: 2px solid red;         position: absolute;         left: 130px;         top: 50px;         width: 150px;         padding-right: 10px;         padding-left: 10px;         background-color: #000000;         z-index: 2;         width: 900px;         /*height: 596px;*/height: 3000px;     }      .link1{         position: absolute;         padding-top: 45%;         padding-left: 20%;         z-index: 4;     }         .container{         position: fixed;         height: 100%;         width: 100%;         background: url('../img/bgtest2.png') no-repeat center center fixed;         background-size: cover;         -webkit-background-size: cover;         z-index: 3;     }      .down {         position: fixed;         z-index: 4;         opacity: 0.5;     }      .textkader{         width: 200px;         background: url('../img/classy_fabric.png');         color: white;         font-size: 12px;         font-family: 'happy monkey', cursive;         text-shadow:              1px 1px 0 transparent,             2px 2px 0 #101010;         overflow: hidden;         padding: 15px;     }     .bigtext{         font-size: 15px;         font-weight: bold;     }      .wieflp{         position: absolute;         padding-top: 110%;         //padding-left: 18.5%;         right: 867px;         /*z-index: 2;*/         z-index:2;     }     


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -