CSS animation-play-state Property

Definition and Usage The animation-play-state property specifies whether the animation is running or paused. Note: Use this property in JavaScript to pause an animation in the middle of a cycle. Example Pause an animation: div {  animation-play-state: paused;}

keyframes

The @keyframes rule specifies the animation code. The animation is created by gradually changing from one set of CSS styles to another. During the animation, you can change the set of CSS styles many times. Specify when the style change will happen in percent or with the keywords “from” and “to”, which is the same… Continue reading keyframes

Published
Categorized as Magento

Mirroring Effect on Text.

How to add mirroring animation over text <script src=”https://unpkg.com/scroll-out/dist/scroll-out.min.js”> </script> <script src=”https://unpkg.com/splitting/dist/splitting.js”> </script> <span id=”jjrd-head-text” class=”text text–turning” data-scroll=”out” data-splitting=””>ERP + eCommerce</span> /* transform */ .jjrd-benefits .text .char { display:inline-flex; -webkit-animation-delay: calc(0.25s + var(–char-index) * 0.1s); animation-delay: calc(0.25s + var(–char-index) * 0.1s); transition: all 0.25s calc(0.25s + var(–char-index) * 0.1s); }. .jjrd-benefits .text–turning [data-scroll=’out’] .char {… Continue reading Mirroring Effect on Text.

Published
Categorized as Magento

clip-path

The clip-path property lets you clip an element to a basic shape or to an SVG source. Note: The clip-path property will replace the deprecated clip property. The clip-path CSS property creates a clipping region that sets what part of an element should be shown. Parts that are inside the region are shown, while those… Continue reading clip-path

Published
Categorized as Magento

Common Breakpoints

There are some commonly used breakpoints in daily programming. If you’re using a CSS framework (like Bootstrap, Bulma, etc.) you can also use their breakpoints. Now let’s see some common breakpoints for widths of devices: 320px — 480px: Mobile devices 481px — 768px: iPads, Tablets 769px — 1024px: Small screens, laptops 1025px — 1200px: Desktops, large screens 1201px and more —  Extra large screens,… Continue reading Common Breakpoints

WordPress register_post_type

Using Custom Post Types, you can register your own post type. Once a custom post type is registered, it gets a new top-level administrative screen that can be used to manage and create posts of that type. To register a new post type, you use the register_post_type () function. Reference:https://developer.wordpress.org/reference/functions/register_post_type/

Published
Categorized as Wordpress

WordPress add_menu_page ()

Introduction # This function is to add an item in the admin panel’s nav bar. Syntax add_menu_page ( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position) Parameters Remarks Here is a list of the default positions (for $position) 2 – Dashboard 4 – Separator … Adding the “Theme page title” item to the nav bar Code… Continue reading WordPress add_menu_page ()

Published
Categorized as Wordpress

How to Enqueue the style.css

//Stylesheet and script inclusion function add_theme_scripts() { $theme_data = wp_get_theme(); wp_enqueue_style(‘main-style’, get_template_directory_uri() . ‘/style.css’, ”, $theme_data[‘version’], ‘all’); } add_action( ‘wp_enqueue_scripts’, ‘add_theme_scripts’ );

Published
Categorized as Wordpress

viewport

Not all devices are the same width; you should make sure that your pages work well in a large variation of screen sizes and orientations. The viewport is the user’s visible area of a web page. The viewport varies with the device, and will be smaller on a mobile phone than on a computer screen.… Continue reading viewport

Published
Categorized as Magento