Articles on Trending Technologies

Technical articles with clear explanations and examples

CSS Transition property

Krantik Chavan
Krantik Chavan
Updated on 15-Mar-2026 246 Views

The CSS transition property allows you to create smooth animations when CSS properties change. It combines all four transition-related properties (transition-property, transition-duration, transition-timing-function, and transition-delay) into a single shorthand declaration. Syntax selector { transition: property duration timing-function delay; } Possible Values PropertyDescriptionDefault propertyCSS property to animate (or 'all')all durationAnimation duration (s or ms)0s timing-functionSpeed curve (ease, linear, ease-in, etc.)ease delayDelay before animation starts0s Example: Basic Height Transition The following example creates a smooth height transition when hovering over a box − ...

Read More

Power of Two in C

Arnab Chakraborty
Arnab Chakraborty
Updated on 15-Mar-2026 1K+ Views

In C programming, checking whether a number is a power of two is a common problem that can be solved efficiently using bitwise operations. A power of two is any number that can be expressed as 2n where n is a non-negative integer (1, 2, 4, 8, 16, 32, etc.). Syntax bool isPowerOfTwo(int n); // Returns true if n is a power of 2, false otherwise Algorithm The key insight is that powers of two have a specific binary pattern − they have exactly one bit set to 1 (the MSB) and all other ...

Read More

CSS animation-duration property

Nishtha Thakur
Nishtha Thakur
Updated on 15-Mar-2026 127 Views

The CSS animation-duration property specifies how long an animation should take to complete one full cycle. This property controls the speed of your animations by setting the time duration. Syntax selector { animation-duration: time; } Possible Values ValueDescription timeSpecifies the duration in seconds (s) or milliseconds (ms) 0sDefault value. No animation occurs Example: 2-Second Animation Duration The following example creates a moving and color-changing animation that completes in 2 seconds − div { ...

Read More

Program to print Square inside a Square in C

suresh kumar
suresh kumar
Updated on 15-Mar-2026 1K+ Views

In C, printing a square inside a square involves creating a pattern where two square borders are drawn using nested loops. The outer square forms the boundary, while an inner square is positioned within it, creating a nested square pattern. Syntax for (row = 1; row

Read More

Add CSS transition effect for both the width and height property

Ankith Reddy
Ankith Reddy
Updated on 15-Mar-2026 665 Views

To add transition effects for both the width and height properties of an element, you can use the CSS transition property. This creates smooth animations when these properties change, such as on hover or focus states. Syntax selector { transition: width duration, height duration; /* or */ transition: width duration, height duration, ease-function, delay; } Example: Transitioning Width and Height on Hover The following example demonstrates how to add transition effects for both width and height properties when hovering over a box ...

Read More

Program to print solid and hollow rhombus patterns in C

suresh kumar
suresh kumar
Updated on 15-Mar-2026 782 Views

A rhombus pattern in C is a diamond-like shape created using stars (*). There are two types: solid rhombus (completely filled with stars) and hollow rhombus (only the border is filled with stars). Syntax // Nested loops to create rhombus pattern for(row = 1; row

Read More

How to create a transition effect with CSS?

Chandu yadav
Chandu yadav
Updated on 15-Mar-2026 188 Views

CSS transitions allow you to smoothly animate changes in CSS properties over a specified duration. They create smooth visual effects when elements change state, such as on hover or focus. Syntax selector { transition: property duration timing-function delay; } Possible Values PropertyDescription propertyCSS property to animate (width, height, color, etc.) durationTime the transition takes (in seconds or milliseconds) timing-functionSpeed curve (ease, linear, ease-in-out, etc.) delayDelay before transition starts (optional) Example: Width Transition on Hover The following example creates a smooth width transition when hovering over a ...

Read More

Build a radial gradient with the shape of a circle

Arjun Thakur
Arjun Thakur
Updated on 15-Mar-2026 304 Views

The CSS radial-gradient property allows you to create circular gradient effects by specifying the circle shape parameter. This creates a gradient that radiates outward from a central point in a perfect circular pattern. Syntax selector { background: radial-gradient(circle, color1, color2, color3, ...); } Example: Circle-Shaped Radial Gradient The following example creates a circular radial gradient with multiple colors − #demo { height: 300px; width: ...

Read More

Program to print right and left arrow patterns in C

suresh kumar
suresh kumar
Updated on 15-Mar-2026 787 Views

In C programming, arrow patterns are visual designs created using nested loops and asterisks. This program demonstrates how to create both left and right arrow patterns using stars and spaces. Syntax for(row = 1; row

Read More

How to work with CSS Transitions?

Giri Raju
Giri Raju
Updated on 15-Mar-2026 127 Views

CSS transitions allow you to change property values smoothly over a specified duration, creating smooth animations between different states. This provides a better user experience by making changes appear gradual rather than instant. Syntax selector { transition: property duration timing-function delay; } Transition Properties PropertyDescriptionDefault Value transition-propertySpecifies which CSS property to transitionall transition-durationDefines how long the transition takes0s transition-timing-functionSpecifies the speed curve of transitionease transition-delayDefines when the transition will start0s Example: Basic Width Transition The following example demonstrates a smooth width transition on hover − ...

Read More
Showing 21101–21110 of 61,297 articles
Advertisements