Modern JavaScript Accordion - Open One At a Time
In this accordion style only one item can be open at a time. This approach ensures that when you open one accordion section, any previously opened accordion section is closed automatically.
In this accordion style only one item can be open at a time. This approach ensures that when you open one accordion section, any previously opened accordion section is closed automatically.
You will find accordion contents on many modern websites. An accordion is a UI pattern where content is toggled between expanded and collapsed states. This allows web developer to show more information in a small area and in a modern style. Accordions are great for enhancing the usability of your site by saving space and keeping your content organized.
In this blog post, we’ll explore how to build a simple accordion using HTML, CSS, and JavaScript. Let’s dive right in!
In this JavaScript tutorial we will create a button that will change the background color of body to any random color on a button click. We will use just plain JavaScript, No JavaScript Library, No JavaScript Framework.
Let’s first create a button with ID color-button that will call a JavaScript function changeBg() on click.
In this JavaScript tutorial we will create a button that will change the background color of body to different colors on a button click.
Let's first create a button which will call a JavaScript function changeBg() on click.
In this CSS tutorial we will create a region / box that will have animated border bottom on mouse hover. The animation will start from center and will move to left and right directions. And when the mouse hover is removed the border will shrink back to center in the same way.
You can use this technique to style your services, projects, features etc. boxes.
Let's first create a simple box using HTML and basic CSS.
HTML
In this CSS tutorial we will create a cool service / feature box using CSS. The box will have a left scrolling border on hover.
Let's first create a simple service box.
In this Visual Studio Code tutorial we will learn how to decrease the width of line number in Visual Studio Code editor.
In this WordPress tutorial we will learn how to register a new image size in WordPress.
WordPress has few default sizes for images, like thumbnail, medium, large, full. When you upload an image, it will automatically create additional images to these sizes.
You can create additional image size as per your need. Like you may need new image size to use as featured image on homepage.
Follow below steps to create a new image size and use it as featured image.
In this WordPress tutorial we will learn how to include custom category or taxonomy term in url of custom post type.
Let's say we have a custom post type course. And we also have a custom taxonomy subject for this post type.
Let's create a custom content type course. Add below codes in functions.php file of your theme.
In this WordPress tutorial we will learn how to print / display terms of a custom taxonomy or WordPress default category in hierarchical order and reverse hierarchical order in single post.