[CSS]How to make infinite loop slider

infinite loop slider

In this article, we are going to describe how to make infinite loop slider which continue to flow automatically using only CSS. ①Prepare slide elements Prepare slide elements in HTML. Don’t forget to prepare two sets of slides as shown below (here, 4 slides per set). ②Add slide animation The CSS is sufficient as follows. Ensure […]

[PHP] Improving var_dump Readability by Adding Color and Line Breaks

crear var_dump

This article aims to address the issue of the often hard-to-read output of the frequently used PHP var_dump function by enhancing its readability through the addition of color and line breaks. Goal of this article When working with PHP, we often use var_dump to inspect variable contents.However, the default var_dump output can be challenging to […]

[PHP] How to Count Number of Lines in File

In this article, we will explain how to count the number of lines in file using PHP. We will also discuss methods for counting the lines in all loaded files. Counting the number of lines in an individual file By passing a file path to the file function, it returns each line as an array. […]

[PHP] How to Generate Dynamic Table of Contents

table of contents

In this article, we will describe about how to automatically generate Table of Contents from headings using PHP.Our method also supports multiple levels of headings. Goal of this article We aim to automatically generate a table of contents from headings using PHP, assuming the presence of HTML as below.The table of contents will be inserted just before […]

[Javascript] How to Make a Table of Contents Automatically

table of contents

In this article, we will describe about how to automatically generate a Table of Contents (toc) from headings using Javascript.Our method also supports multiple levels of headings. Table of Contents from Headings We aim to automatically generate a table of contents from headings, assuming the presence of HTML as below. The table of contents will […]

[Javascript]How to write One-Time EventListener

In modern major browsers, you don’t need removeEventListener or flags to execute an event only once in JavaScript.There’s a fantastic option available, so let’s take a closer look. addEventListener Once Just by adding {once: true} to the third argument for addEventListener, it will execute the event only once. Wonderful! In the case of jQuery In […]

[Javascript]How to convert HTML string into Node

In this article, we will discuss how to convert HTML string into Nodes. Converting HTML string to Node This can be very simple, and you can define the function in just one line. The following information is supplementary. DOM operations on the converted Node The Node converted using the previous method is formally known as […]

[Javascript]How to detect if the Event is triggered by user’s action

In this article, we will discuss about how to detect whether an event is triggered by actual user’s actions or forced triggering by a script. In the case of plain Javascript By referencing the isTrusted property of the event object passed to the event listener’s callback, you can determine whether the event was triggered by […]

[Swiper×React]How to put arrows and dots outside of slider

Swiper slider

There are times when you might want to place the navigation arrows and pagination dots of a slider created using Swiper and React outside of the slider itself. In this article, we will explain how to achieve this with the help of demos. ①Create a normal swiper slider For clarity, let’s start by creating a […]

[Swiper×React]How to create thumbnail slider

thumbnail slider

In this article, we will explain how to create a slider with thumbnails using swiper.js and React.This will be achieved by utilizing the options of swiper.js to synchronize two sliders. ①Create the main Swiper slider Let’s add navigation and looping only. We’ll use the same images for the thumbnails, so we’ll keep them in an […]