HTML | DOM Style transitionTimingFunction property Last Updated : 05 Jun, 2022 Comments Improve Suggest changes Like Article Like Report The DOM Style transitionTimingFunction property allows a transition effect to change speed over its duration. Transition effect provides a way to control animation speed when changing properties. Syntax: To set the property:object.style.transitionTimingFunction = "ease|linear|ease-in| ease-out|ease-in-out"To get the property:object.style.transitionTimingFunction Return Values: It returns a string that represents the transition-timing-function property of an element Property Values: ease: Specifies a transition effect that starts slowly, then fast, then slow.linear: Specifies a transition effect with the same speed from start to end.ease-in: Specifies a transition effect with a slow start.ease-out: Specifies a transition effect with a slow end.ease-in-out: Specifies a transition effect with a slow start and end. Example 1: This example describes linear property value. html <!DOCTYPE html> <html> <head> <title> HTML | DOM Style transitionTimingFunction property </title> <style> #GFG { background-color: green; width: 150px; height: 150px; overflow: auto; /* For Safari Browser */ -webkit-transition: all 2s; transition: all 2s; } #GFG:hover { width: 300px; height: 300px; } </style> </head> <body> <button onclick = "myGeeks()"> Click Here! </button> <br><br> <div id = "GFG"> </div> <script> function myGeeks() { /* For Safari Browser */ document.getElementById("GFG").style.WebkitTransitionTimingFunction = "linear"; document.getElementById("GFG").style.transitionTimingFunction = "linear"; } </script> </body> </html> Output: Example 2: This example describes ease-in property value. html <!DOCTYPE html> <html> <head> <title> HTML | DOM Style transitionTimingFunction property </title> <style> #GFG { background-color: green; width: 150px; height: 150px; overflow: auto; /* For Safari Browser */ -webkit-transition: all 2s; transition: all 2s; } #GFG:hover { width: 300px; height: 300px; } </style> </head> <body> <button onclick = "myGeeks()"> Click Here! </button> <br><br> <div id = "GFG"> </div> <script> function myGeeks() { /* For Safari Browser */ document.getElementById("GFG").style.WebkitTransitionTimingFunction = "ease-in"; document.getElementById("GFG").style.transitionTimingFunction = "ease-in"; } </script> </body> </html> Output: Note: Use WebkitTransitionTimingFunction as a keyword in safari browser. Supported Browsers: The browser supported by HTML | DOM Style transitionTimingFunction property are lited below: Google Chrome 26.0 and aboveEdge 12 and aboveInternet Explorer 10.0 and aboveMozilla Firefox 16.0 and aboveOpera 12.1 and aboveSafari 9 and above Comment More infoAdvertise with us K kartikgoel1999 Follow Improve Article Tags : Web Technologies HTML HTML-DOM HTML-Property Similar Reads HTML | DOM Textarea autofocus Property The DOM Textarea autofocus Property is used to set or return whether the element should get focus when the page loads. This property is used to reflect the HTML autofocus attribute. Syntax: It is used to Return the autofocus property. textareaObject.autofocusIt is used to Set the autofocus property. 2 min read HTML | DOM ClipboardEvent The ClipboardEvent refers to all the events which occur when the clipboard is modified. All the properties and methods are inherited from the âEvent Objectâ. There are 3 main ClipboardEvents:oncopyoncutonpasteReturn Value: It returns an object containing the data affected by the clipboard operation. 1 min read HTML | DOM Input Range Object The Input Range Object in HTML DOM is used to represent the HTML < input > element with type="range". This object is used to access or create the <input> element. This element can be accessed by using getElementById() method. Syntax: document.getElementById("Input_ID"); This Input_ID is 2 min read HTML | DOM Window closed Property The Window closed property in HTML DOM is used to return a value that indicates whether the referred window is closed or not. Syntax: window.close() Return Value: A Boolean value, true if window is closed otherwise false. Example: HTML <!DOCTYPE html> <html> <head> <title> HT 1 min read HTML | DOM Style textAlignLast Property The Style textAlignLast property in HTML DOM is used to set the alignment of the last line of the text. Syntax: Return the textAlignLast property: object.style.textAlignLast Set the textAlignLast property: object.style.textAlignLast = "auto | left | right | center | justify | start | end | initial | 2 min read HTML | DOM TouchEvent When a user touches a touch-based device the resulted events are handled by TouchEvent Object. The touch events consist of three types of interfaces i.e. Touch, TouchEvent and TouchList. The single contact point events on a touch-sensitive device are handled by the Touch interface. The events which 2 min read HTML | DOM Storage Event The Storage Event in HTML DOM is used to make change in the storage area in the context of another document. When there is modification in the storage area of the window, a storage event is sent to that window. Syntax: window.addEventListener("storage", script) Example: html <!DOCTYPE html> 1 min read HTML | DOM PageTransitionEvent The PageTrasitionEvent occurs during the time a document is being loaded or unloaded. Syntax: PageTransitionEvent.persisted Property Values: persisted: Returns boolean value whether the webpage was cached or not. Return Value: This property returns True if the document is loaded from a cache or not 1 min read HTML DOM Style display Property The HTML DOM Style display property is used to set or return the display type of an element. It is similar to the visibility property, which displays or hides the element. With a slight difference in display: none, hiding the entire element, while visibility: hidden meaning only the contents of the 3 min read HTML | DOM Input Submit Object The Input Submit object in HTML DOM represents the HTML <input> element with type = "submit" attribute. Syntax: It creates an Input Submit Object.document.createElement("INPUT")It is used to access an Input Submit Object.document.getElementById("id") Property Values: autofocus: It sets or retu 3 min read Like