current location:Home > Technical Articles > Web Front-end

  • How to Use WebSockets in Node.js to Create Real-time Apps
    How to Use WebSockets in Node.js to Create Real-time Apps
    Node.js WebSockets: Real-time Communication Made Easy This tutorial explores the power of WebSockets in Node.js for creating dynamic, real-time applications like dashboards, chat applications, and multiplayer games. Unlike traditional HTTP's request
    JS Tutorial 361 2025-02-08 10:34:08
  • How to Create Animated GIFs from GSAP Animations
    How to Create Animated GIFs from GSAP Animations
    Convert GSAP animations to animations GIFs: A step-by-step guide to using modern-gifs Key Points You can use a process to convert GSAP animations into an animated GIFs that involve capturing SVG data and writing them to the HTML canvas every time you adjust the tween. This SVG data can then be converted into rasterized image data, which is then used by modern-gif to create each frame of the animated GIF. The conversion process involves several steps, including capturing SVG data, converting SVG data into rasterized data, and finally converting the rasterized data into GIF. Each step involves specific code modifications and using arrays to store captured and converted numbers
    JS Tutorial 467 2025-02-08 10:31:09
  • Scale Your React App with Storybook and Chromatic
    Scale Your React App with Storybook and Chromatic
    This article demonstrates how Storybook and Chromatic streamline React component library development, offering enhanced documentation, visual regression testing, and improved team collaboration. Key Benefits: Storybook: Enables efficient component l
    JS Tutorial 474 2025-02-08 10:28:10
  • How to Create Printer-friendly Pages with CSS
    How to Create Printer-friendly Pages with CSS
    In this article, we review the art of creating printer-friendly web pages with CSS. Key Takeaways The Importance of Printer-Friendly Pages: Despite the digital age, there’s a significant need for printer-friendly web pages. Printing web pages is
    CSS Tutorial 1039 2025-02-08 10:27:09
  • Using JSON Web Tokens with Node.js
    Using JSON Web Tokens with Node.js
    API authentication is one of the biggest challenges when building an API and one of the biggest security vulnerabilities of the API. The correct authentication mechanism helps avoid security threats and ensures that only authorized users can access the required data. Authentication used to be simple when dealing with server-side applications. Simple session verification on the server is sufficient to ensure user permissions to the operation. However, the advent of APIs has brought significant changes to these authentication challenges. However, for APIs, you cannot implement a session. You cannot guarantee that your API is always called using a web browser, so you cannot rely on cookies to protect your API. One of the key features of an API is its statelessness, which means sending to the API
    JS Tutorial 284 2025-02-08 10:26:19
  • A Complete Guide to LangChain in JavaScript
    A Complete Guide to LangChain in JavaScript
    LangChainJS: A powerful framework for building AI-driven JavaScript language models and agents Core points: LangChainJS is a powerful JavaScript framework that enables developers to build and experiment with AI-driven language models and agents that are seamlessly integrated into web applications. The framework allows the creation of agents that can leverage various tools and data sources to perform complex language tasks such as Internet searches and mathematical calculations, thereby improving the accuracy and relevance of responses. LangChain supports a variety of models, including language models for simple text output, chat models for interactive conversations, and embedding modules for converting text into numeric vectors.
    JS Tutorial 884 2025-02-08 10:24:13
  • An Introduction to the esbuild Bundler
    An Introduction to the esbuild Bundler
    esbuild: Quickly build tools, say goodbye to Webpack redundancy! esbuild is a high-performance packaging tool that can quickly optimize JavaScript, TypeScript, JSX and CSS code. This article will walk you through esbuild quickly and show how to create your own build system without additional dependencies. Core points: esbuild efficiency: esbuild is much faster than traditional tools such as Webpack or Rollup, and can efficiently handle JavaScript, TypeScript, JSX and CSS with its multi-core processing capabilities. Packaging Advantages: Using esbuild to improve performance
    JS Tutorial 505 2025-02-08 10:23:10
  • How to Create a CSS Typewriter Effect for Your Website
    How to Create a CSS Typewriter Effect for Your Website
    Pure CSS creates engaging typewriter text effects Core points: CSS typewriter effects make website content more dynamic and attractive by gradually displaying text, and can be used for login pages, personal websites and code demonstrations. Typewriter effects can be created by using the CSS steps() function to change the width of the text element from 0% to 100%, and animation simulation of the cursor of "photo" the text. Typing effects can be adjusted by increasing or decreasing the number of steps and duration of the typing animation to accommodate longer or shorter text. Typewriter effects can be used in conjunction with flashing cursor animations to enhance the effect, and the cursor can be customized by adjusting its border-right attribute, color, flashing frequency, and more. This article will
    CSS Tutorial 605 2025-02-08 10:20:13
  • 10 Simple CSS and JavaScript Micro-interactions for Buttons
    10 Simple CSS and JavaScript Micro-interactions for Buttons
    Web button micro-interaction design: Ten tips to improve user experience This article will introduce ten simple ways to add micro-interactions to web buttons to enhance user experience and make the website more attractive. Core points: Enhanced user experience: Microinteraction provides instant feedback, improve user participation, and improve overall user experience. Multiple effects: The tutorial covers a variety of effects such as sound, border animation, 3D transformation, and more complex interactions such as shape and text changes. Accessibility and Interaction: Sound-based micro-interactions are especially useful for improving accessibility, especially on mobile devices. Use of CSS and JavaScript: All effects are dynamically interspersed through CSS styles and animations and JavaScript
    JS Tutorial 905 2025-02-08 10:18:09
  • Create a Toggle Switch in React as a Reusable Component
    Create a Toggle Switch in React as a Reusable Component
    In this article, we’ll create an iOS-inspired toggle React component. This will be a small, self-contained component that you can reuse in future projects. As we go, we’ll also build a simple demo React app that uses our custom toggle switch componen
    JS Tutorial 1086 2025-02-08 10:17:10
  • Quick Tip: Decorators in TypeScript
    Quick Tip: Decorators in TypeScript
    Decorators in TypeScript 5.0: Elegantly modify classes and methods This article is excerpted from "Unlocking the Power of TypeScript", which will show you how to use the new feature of decorator in TypeScript 5.0. Decorators have almost always been part of ECMAScript. These neat tools allow us to modify classes and members in a reusable way. They have been in TypeScript for some time—although under experimental signs. Although the Stage 2 iterations of decorators have been experimental, they have been widely used in libraries such as MobX, Angular, Nest, and TypeORM. TypeScript 5.0
    JS Tutorial 470 2025-02-08 10:11:15
  • Build a GraphQL Gateway: Combine, Stitch or Merge any Datasource
    Build a GraphQL Gateway: Combine, Stitch or Merge any Datasource
    Core points GraphQL gateways combine the advantages of traditional API gateways and GraphQL, allowing software engineers to obtain data from multiple data sources while maintaining front-end efficiency. The backend, i.e., frontend (BFF) architecture reduces the number of requests on the frontend, simplifying the process by allowing a single request to the API gateway, which then fetches data from each backend service and combines it. GraphQL provides BFF with many advantages, including efficient data acquisition, a single endpoint for all requests, and flexible queries that allow the front-end to select only the required data for each request. The three recommended frameworks for establishing GraphQL gateways include Hasura, StepZen, and Graphweaver.
    JS Tutorial 434 2025-02-08 10:10:09
  • Quick Tip: How to Animate Text Gradients and Patterns in CSS
    Quick Tip: How to Animate Text Gradients and Patterns in CSS
    In this quick tip, we’ll show how easy it is to animate a background gradient with CSS. In a recent article, we showed how to set a background gradient on text. The CodePen demo below shows the result. See the Pen Text with left to right gra
    CSS Tutorial 1017 2025-02-08 10:06:13
  • Quick Tip: Understanding React Tooltip
    Quick Tip: Understanding React Tooltip
    React Tooltip: Key React Components to Improve User Experience React Tooltip is an important component in the React library that enhances the user experience by providing additional information when users hover, focus, or touch elements. This article explores React Tooltip in depth, covering its capabilities, implementations, and best practices. What is React Tooltip? React Tooltip is a user interface component that provides context information when users interact with other components. It is a small pop-up box that appears when the user hovers over an item or element on a web page. While this function requires a simple and intuitive interface design, it also requires a scenario specialization that provides sufficient information.
    JS Tutorial 548 2025-02-08 10:03:09
  • Using Nodemon and Watch in Node.js for Live Restarts
    Using Nodemon and Watch in Node.js for Live Restarts
    Say goodbye to the cumbersomeness of repeated restarts in Node.js development! This article introduces two methods to help you improve development efficiency. Core points Efficient development with nodemon: We will introduce nodemon, a third-party Node.js module, which can effectively solve the problem of manually stopping and restarting the Node.js application after each code modification. nodemon configuration options: We will cover various nodemon configuration options, such as setting a specific path to monitor, ignoring a specific path, monitoring a specific file extension, adjusting restart delay, and setting environment variables. Node.js --watch mode (for simple applications): For simple applications, if you are using Nod
    JS Tutorial 461 2025-02-08 10:00:19

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28