Ankith Reddy has Published 996 Articles

Set an animation with a slow start, then fast, and end slowly with CSS

Ankith Reddy

Ankith Reddy

Updated on 24-Jun-2020 05:51:53

1K+ Views

Use the animation-timing-function property, with the ease value to set animation with a slow start, then fast, to end slowly with CSSExampleLive Demo                    div {             width: 150px;             ... Read More

How to delay an animation with CSS

Ankith Reddy

Ankith Reddy

Updated on 24-Jun-2020 05:46:47

74 Views

To delay an animation, use the CSS animation-delay property. You can try to run the following code to delay animationExampleLive Demo                    div {             width: 150px;             height: 200px;             background-color: yellow;             animation-name: myanim;             animation-duration: 2s;             animation-delay: 2s;          }          @keyframes myanim {             from {                background-color: green;             }             to {                background-color: blue;             }          }                        

Add CSS transition effect for both the width and height property

Ankith Reddy

Ankith Reddy

Updated on 23-Jun-2020 16:30:14

591 Views

To add transition effect for width and height property of an element, you can try to run the following codeExampleLive Demo                    div {             width: 150px;             height: 150px; ... Read More

Role of CSS [attribute="value"] Selector

Ankith Reddy

Ankith Reddy

Updated on 23-Jun-2020 16:15:32

2K+ Views

Use the [attribute=”value”] selector to select elements with a specified attribute and value.You can try to run the following code to implement the CSS [attribute="value"] Selector. Here, we have considered the attribute as rel, ExampleLive Demo                    a[rel = nofollow] { ... Read More

Which CSS property is used to run Animation in Reverse Direction?

Ankith Reddy

Ankith Reddy

Updated on 23-Jun-2020 15:48:25

269 Views

Use the animation-direction property to run animation in reverse direction. The property is used with the reverse animation value to achieve this.ExampleLive Demo                    div {             width: 150px;             height: 200px;             background-color: yellow;             animation-name: myanim;             animation-duration: 2s;             animation-direction: reverse;          }          @keyframes myanim {             from {                background-color: green;             }             to {                background-color: blue;             }          }                        

synchronized Keyword in Java

Ankith Reddy

Ankith Reddy

Updated on 23-Jun-2020 15:32:55

2K+ Views

When we start two or more threads within a program, there may be a situation when multiple threads try to access the same resource and finally they can produce unforeseen result due to concurrency issues. For example, if multiple threads try to write within a same file then they may ... Read More

Java instanceof and its applications

Ankith Reddy

Ankith Reddy

Updated on 23-Jun-2020 15:25:56

602 Views

instanceof operator is used to check the type of object passed. Following rules explain the usage of instanceof operator in Java.instanceof operator returns true for the object if checked against its class type.instanceof operator returns false for the object if checked against its type which is not in its hierarchy.instanceof ... Read More

With CSS set the element to retain the style values that is set by the first keyframe

Ankith Reddy

Ankith Reddy

Updated on 23-Jun-2020 15:23:03

131 Views

To set the elements to retain the style values set by the last keyframe, use the animation-fill-mode property with the backwards value.ExampleLive Demo                    div {             width: 150px;             ... Read More

Iterator in Java

Ankith Reddy

Ankith Reddy

Updated on 23-Jun-2020 15:13:29

516 Views

Often, you will want to cycle through the elements in a collection. For example, you might want to display each element. The easiest way to do this is to employ an iterator, which is an object that implements either the Iterator or the ListIterator interface.Iterator enables you to cycle through ... Read More

Initialize HashSet in Java

Ankith Reddy

Ankith Reddy

Updated on 23-Jun-2020 15:00:21

16K+ Views

A set is a collection which does not allows duplicate values. HashSet is an implementation of a Set. Following are the ways in which we can initialize a HashSet in Java.Using constructor − Pass a collection to Constructor to initialize an HashSet.Using addAll() − Pass a collection to Collections.addAll() to ... Read More

Advertisements