Posts

TweenLite absolute beginning for animations

 TweenLite syntax Method of using TweenLite const tl = new TweenLite.Method(Element, duration, animating property); OR  const tl = TweenLite.Method(Element, duration, animating property); OR best and Popular way  TweenLite.Method(Element, duration, animating properties) From above; Method = ways of animation Element = that element you want to animate Duration = Amount of time that your animation takes to finish Animating property = Various properties which you want to show in animating way

Simple TweenMax code and guide

 TweenMax You can use tween max for small animations example; code; let section = document.querySelector(" section ");    It will select an element TweenMax.to(section,1,{scale:1.5})  its syntax is TweenMax.to( element , duration , animating property ) Html code:     <section>         <h1>Hello World</h1>         <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Totam, est eligendi! Labore nisi excepturi dignissimos officia doloremque repellendus, ducimus totam nulla et, esse sint? Vero officia obcaecati assumenda recusandae dolorum consectetur possimus omnis odio minus praesentium fugit placeat qui hic deserunt vel architecto atque excepturi labore doloremque, quia optio. Id quaerat cupiditate possimus, qui quia harum illo odit illum, dolor voluptatibus sequi et nobis officia adipisci molestiae accusamus temporibus explicabo a minus magnam voluptas, distinctio libero vitae. Quasi ab...

Scroll magic javascript

 Scroll magic code Script tags used in html are:     <script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.8/ScrollMagic.min.js" integrity="sha512-8E3KZoPoZCD+1dgfqhPbejQBnQfBXe8FuwL4z/c8sTrgeDMFEnoyTlH3obB4/fV+6Sg0a0XF+L/6xS4Xx1fUEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>     <script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.8/plugins/debug.addIndicators.min.js" integrity="sha512-RvUydNGlqYJapy0t4AH8hDv/It+zKsv4wOQGb+iOnEfa6NnF2fzjXgRy+FDjSpMfC3sjokNUzsfYZaZ8QAwIxg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>     <script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.8/plugins/animation.gsap.min.js" integrity="sha512-5/OHwmQzDSBS0Ous4/hlYoWLHd06/d2r7LdKZQVBXOA6PvOqWVXtdboiLTU7lQTGyVoKVTNkwi0ol4gHGlw5ww==" crossorigin="anonymous" referrerpolicy="no-referre...

Intersection Observer

 Intersection Observer const main = document.querySelectorAll("h1");     <<< [It will select all h1]  const observer = new IntersectionObserver((entries) =>{      [all h1 are in the form of events in entries as array]     console.log(entries);      [if you have 3 h1 you will see 3 intersection observer as items inside array]     entries.forEach((entry) =>{  [inside that array each intersection obeserver as selected using foreach loop]         if(entry.isIntersecting){     [ entry refers to single intersection observer from 3 of them (3 ota h1 maddhe 1 ota) ]             console.log("THIS IS entry");  [ isIntersecting means whether it is on screen or not ]             console.log(entry);   [ if any of entry (i.e.  h1) is being displayed under screen then this if statement runs ...

1st calculator

 Calculator;     < div class = "container" >         < div class = "calculator" >             < div class = "display-screen" >< div class = "display" ></ div ></ div >             < div class = "buttons" >                 < table >                     < tr >                         < td >< button class = "number seven" id = "seven" >7</ button ></ td >                         < td >< button class = "number eight" id = "eight" >8</ button ></ td >                         < td >< button class = "number nine" id...

OUTPUT OF NOTE

Funtion (e) Javascript OUTPUT OF :  document.getElementById("eightt").addEventListener("click", function(e){console.log(e)}) OUTPUT  PointerEvent  { isTrusted : true , pointerId : 0 , width : 1 , height : 1 , pressure : 0 , … } isTrusted : true altKey : false altitudeAngle : 1.5707963267948966 azimuthAngle : 0 bubbles : true button : 0 buttons : 0 cancelBubble : false cancelable : true clientX : 296 clientY : 511 composed : true ctrlKey : false currentTarget : null defaultPrevented : false detail : 1 eventPhase : 0 fromElement : null height : 1 isPrimary : false layerX : 296 layerY : 511 metaKey : false movementX : 0 movementY : 0 offsetX : 78 offsetY : 102 pageX : 296 pageY : 511 path : (5)  [ button #eightt .number.eight ,  body ,  html ,  document ,  Window ] pointerId : 0 pointerType : "touch" pressure : 0 relatedTarget : null returnValue : true screenX : 432 screenY : 496 shiftKey : false sourceCapabilities : InputDeviceCapabilities...