Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Arjun Thakur
Page 26 of 75
Fade Out Animation Effect with CSS
The CSS fade out animation effect gradually transitions an element from fully visible (opacity: 1) to completely invisible (opacity: 0). This creates a smooth disappearing effect that's commonly used for image galleries, modal closures, and interactive elements. Syntax @keyframes fadeOut { 0% { opacity: 1; } 100% { opacity: 0; } } .element { animation-name: fadeOut; animation-duration: time; animation-fill-mode: both; } Example: Basic Fade Out Effect The following example demonstrates a fade out ...
Read MoreShadow Filter with CSS
The CSS shadow filter is used to create drop shadows for elements. This filter applies an attenuated shadow in the specified direction and color, giving a 3D appearance to text and images. Syntax selector { filter: drop-shadow(offset-x offset-y blur-radius color); } Parameters Parameter Description offset-x Horizontal offset of the shadow (positive = right, negative = left) offset-y Vertical offset of the shadow (positive = down, negative = up) blur-radius The blur effect applied to the shadow (optional, default is 0) ...
Read MoreRole of CSS Filters
CSS filters allow you to apply visual effects like blur, brightness, contrast, and more to HTML elements without using external graphics. The filter property provides a powerful way to manipulate the rendering of images, backgrounds, and even text elements. Syntax selector { filter: filter-function(value); } Common Filter Functions Filter FunctionDescriptionValue Range blur()Applies blur effect0px to any px value brightness()Adjusts brightness0% to any percentage contrast()Adjusts contrast0% to any percentage grayscale()Converts to grayscale0% to 100% hue-rotate()Rotates hue colors0deg to 360deg Example: Basic Image Filters The following example demonstrates ...
Read MoreCSS outline-color property
The CSS outline-color property is used to specify the color of an element's outline. It accepts color values in various formats including color names, hex codes, RGB values, and HSL values. Syntax selector { outline-color: color; } Possible Values ValueDescription color nameStandard color names like red, blue, green hexHexadecimal color values like #FF0000 rgb()RGB color values like rgb(255, 0, 0) hsl()HSL color values like hsl(0, 100%, 50%) invertPerforms a color inversion of the background Example: Blue Outline Color The following example demonstrates how to apply a ...
Read MoreWhich property is used to tell the browser what to do if the box's content is larger than the box itself?
CSS provides a property called overflow which tells the browser what to do if the box's content is larger than the box itself. Syntax selector { overflow: value; } Possible Values Value Description visible Allows the content to overflow the borders of its containing element (default) hidden The content is clipped at the border and no scrollbars are visible scroll Scrollbars are always added, allowing users to scroll to see overflowing content auto Scrollbars appear only if ...
Read MoreDesignated Initializers in C
In C90 standard we have to initialize the arrays in the fixed order, like initialize index at position 0, 1, 2 and so on. From C99 standard, they have introduced designated initializing feature in C. Here we can initialize elements in random order. Initialization can be done using the array index or structure members. This extension is not implemented in GNU C++. Syntax // Array designated initialization type array[size] = {[index] = value, [index] = value, ...}; // Range designated initialization type array[size] = {[first ... last] = value}; // Structure designated initialization struct name ...
Read MoreC Program to display hostname and IP address
In C, we can retrieve the hostname and IP address of the local system using socket programming functions. This is useful for network programming and system administration tasks. Syntax int gethostname(char *name, size_t len); struct hostent *gethostbyname(const char *name); char *inet_ntoa(struct in_addr in); Key Functions Function Description gethostname() Retrieves the standard hostname for the local computer gethostbyname() Finds host information corresponding to a hostname from host database inet_ntoa() Converts an IPv4 network address into ASCII dotted decimal format ...
Read MoreWrite a C program that does not terminate when Ctrl+C is pressed
In C, we can create a program that does not terminate when Ctrl+C is pressed by using signal handling. The Ctrl+C key combination generates the SIGINT (Signal Interrupt) signal, which normally terminates a running process. However, we can intercept this signal using the signal() function and define custom behavior instead. Syntax #include void (*signal(int sig, void (*func)(int)))(int); Where sig is the signal number and func is the handler function to be called when the signal is received. Common Signal Types Signal Description SIGABRT Indicates Abnormal ...
Read MoreInitialization of global and static variables in C
In C language both the global and static variables must be initialized with constant values. This is because the values of these variables must be known at compile time before the program execution starts. An error will be generated if the constant values are not provided for global and static variables. Syntax // Global variable initialization data_type variable_name = constant_value; // Static variable initialization static data_type variable_name = constant_value; Example 1: Valid Initialization with Constants This example demonstrates the correct way to initialize global and static variables using constant values − ...
Read Moreimagecolorresolve() function in PHP
The imagecolorresolve() function gets the index of the specified color or its closest possible alternative in a palette-based image. This function is useful when working with palette images where exact color matches might not be available. Syntax imagecolorresolve(resource $image, int $red, int $green, int $blue) Parameters image − An image resource created by functions like imagecreate() or imagecreatefromgif(). red − The value of the red component (0-255). green − The value of the green component (0-255). blue − The value of the blue component (0-255). Return Value Returns the color ...
Read More