Articles on Trending Technologies

Technical articles with clear explanations and examples

Rotate In Animation Effect with CSS

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 29-Jun-2020 298 Views

To create a rotate in animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;             background-position: left top;             padding-top:95px;             margin-bottom:60px;             -webkit-animation-duration: 10s;             animation-duration: 10s;             -webkit-animation-fill-mode: both;             animation-fill-mode: both;          }          @-webkit-keyframes rotateIn {             0% {                -webkit-transform-origin: center center;                -webkit-transform: rotate(-200deg);                opacity: 0;             }             100% {                -webkit-transform-origin: center center;                -webkit-transform: rotate(0);                opacity: 1;             }          }          @keyframes rotateIn {             0% {                transform-origin: center center;                transform: rotate(-200deg);                opacity: 0;             }             100% {                transform-origin: center center;                transform: rotate(0);                opacity: 1;             }          }          .rotateIn {             -webkit-animation-name: rotateIn;             animation-name: rotateIn;          }                           Reload page                       function myFunction() {             location.reload();          }          

Read More

CSS volume Property

karthikeya Boyini
karthikeya Boyini
Updated on 29-Jun-2020 131 Views

Volume refers to the median volume of the voice. It can have following values −numbers − Any number between '0' and '100'. '0' represents the minimum audible volume level and 100 correspond to the maximum comfortable level.percentage − These values are calculated relative to the inherited value, and are then clipped to the range '0' to '100'.silent − No sound at all. The value '0' does not mean the same as 'silent'.x-soft − Same as '0'.soft − Same as '25'.medium − Same as '50'.loud − Same as '75'.x-loud − Same as '100'.ExampleLet us see an example −    

Read More

Rotate In Down Left Animation Effect with CSS

Nancy Den
Nancy Den
Updated on 29-Jun-2020 110 Views

To create a rotate in down animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;             background-position: left top;             padding-top:95px;             margin-bottom:60px;             -webkit-animation-duration: 10s;             animation-duration: 10s;             -webkit-animation-fill-mode: both;             animation-fill-mode: both;          }          @-webkit-keyframes rotateInDownLeft {             0% {                -webkit-transform-origin: left bottom;                -webkit-transform: rotate(-90deg);                opacity: 0;             }             100% {                -webkit-transform-origin: left bottom;                -webkit-transform: rotate(0);                 opacity: 1;             }          }          @keyframes rotateInDownLeft {             0% {             transform-origin: left bottom;             transform: rotate(-90deg);             opacity: 0;             }             100% {                transform-origin: left bottom;                transform: rotate(0);                opacity: 1;             }          }          .rotateInDownLeft {             -webkit-animation-name: rotateInDownLeft;             animation-name: rotateInDownLeft;          }                           Reload page                function myFunction() {             location.reload();          }          

Read More

Roll In Animation Effect with CSS

Krantik Chavan
Krantik Chavan
Updated on 29-Jun-2020 573 Views

To create a roll in animation effect with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: no-repeat;             background-position: left top;             padding-top:95px;             margin-bottom:60px;             -webkit-animation-duration: 10s;             animation-duration: 10s;             -webkit-animation-fill-mode: both;             animation-fill-mode: both;          }          @-webkit-keyframes rollIn {             0% {                opacity: 0;                -webkit-transform: translateX(-100%) rotate(-120deg);             }             100% {                opacity: 1;                -webkit-transform: translateX(0px) rotate(0deg);             }          }          @keyframes rollIn {             0% {                opacity: 0;                transform: translateX(-100%) rotate(-120deg);             }             100% {                opacity: 1;                transform: translateX(0px) rotate(0deg);             }            }          .rollIn {             -webkit-animation-name: rollIn;             animation-name: rollIn;          }                           Reload page                function myFunction() {             location.reload();          }          

Read More

Get the class name for various objects in Java

Krantik Chavan
Krantik Chavan
Updated on 29-Jun-2020 398 Views

The getName() method is used to get the names of the entities such as interface, class, array class, void etc. that are represented by the class objects. These names are returned in the form of a string. The getPackage() method gets the package for the given class.A program that gets the class name for various objects is given as follows −Example Live Demopackage Test; import java.io.IOException; import java.util.HashMap; public class Demo {    public static void main(String args[]) throws IOException {       Object obj = "string";       System.out.println("The class name is: " + obj.getClass().getName());       ...

Read More

Get Canonical Name for a class in Java

Nancy Den
Nancy Den
Updated on 29-Jun-2020 496 Views

The canonical name of a class can be obtained using the java.lang.Class.getCanonicalName() method. This method returns the canonical name of the underlying class and returns null if there is no canonical name for the underlying class.A program that demonstrates the getCanonicalName() method to obtain the canonical name is given as follows −Example Live Demopackage Test; import java.lang.*; public class Demo {    public static void main(String[] args) {       Demo obj = new Demo();       Class c = obj.getClass();       System.out.println("The canonical name of the underlying Class is: " + c.getCanonicalName());    } }OutputThe canonical ...

Read More

Create and demonstrate an immutable collection in Java

Anvi Jain
Anvi Jain
Updated on 29-Jun-2020 242 Views

In order to create and demonstrate an immutable collection in Java, we use the unmodifiableCollection() method. This method returns an unmodifiable and immutable view of the collection.Declaration − The java.util.Collections.unmodifiableCollection() method is declared as follows -public static Collection unmodifiableCollection(Collection

Read More

Get Array Dimensions in Java

Nancy Den
Nancy Den
Updated on 29-Jun-2020 2K+ Views

In order to get Array Dimensions in Java, we use the getClass(), isArray() and getComponentType() methods with decision making in combination with iterative statements.The getClass() method method returns the runtime class of an object. The getClass() method is a part of the java.lang.Object class.Declaration − The java.lang.Object.getClass() method is declared as follows −public final Class getClass()The isArray() method checks whether the passed argument is an array. It returns a boolean value, either true or falseSyntax - The isArray() method has the following syntaxArray.isArray(obj)The getComponentType() method returns the Class denoting the component type of an array. If the class is not an ...

Read More

How to schedule tasks in Java to run for repeated fixed-rate execution, beginning after the specified delay

Smita Kapse
Smita Kapse
Updated on 29-Jun-2020 498 Views

One of the methods of the Timer class is void scheduleAtFixedRate(TimerTask task, long delay, long period). This method schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.In fixed-rate execution, each execution is scheduled with respect to the scheduled run time of the initial execution. Fixed-rate execution is apt for repetitive activities that are respond to absolute time. Likewise, fixed-rate execution is appropriate for scheduling multiple repeating timer tasks that must remain in sync.Declaration − The java.util.Time.scheduleAtFixedRate(TimerTask task, long delay, long period) method is declared as follows −public void scheduleAtFixedRate(TimerTask task, long delay, long period)Here, task is ...

Read More

Determining If an Object Is an Array in Java

Anvi Jain
Anvi Jain
Updated on 29-Jun-2020 6K+ Views

In order to determine if an object is an Object is an array in Java, we use the isArray() and getClass() methods.The isArray() method checks whether the passed argument is an array. It returns a boolean value, either true or falseSyntax - The isArray() method has the following syntax -Array.isArray(obj)The getClass() method method returns the runtime class of an object. The getClass() method is a part of the java.lang.Object class.Declaration − The java.lang.Object.getClass() method is declared as follows −public final Class getClass()The getClass() method acts as the intermediate method which returns an runtime class of the object, which enables the terminal ...

Read More
Showing 42231–42240 of 61,248 articles
Advertisements