Clone Project

Auto Link Previews

Created by
Web Bae
Similar Projects
Oops! Something went wrong while submitting the form.

0 Comments

Be the first to leave a comment.
Loading
User is typing...
No Name
Set
4 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
No Name
Set
2 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
Load More
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Load More
Description:  
AI Description

The Link Preview component allows users to add automatic thumbnail previews to links using the `auto-link-preview` attribute. It fetches website screenshots via thum.io and supports custom thumbnail URLs. This component enhances user experience by providing visual context for links on hover or focus.

Key Features:

  • Automatically fetches website screenshots using thum.io.
  • Supports custom thumbnail URLs for personalized link previews.
  • Utilizes GSAP for smooth animations of thumbnail positioning.
  • Works with both :focus and :hover states for interactive engagement.
  • Detects device capabilities to enable previews only on hover-capable devices.

Design Elements:

  • Thumbnail images are styled with a border radius and shadow for a polished look.
  • The component uses absolute positioning to ensure thumbnails appear correctly relative to the link.
  • Animation effects are applied to the thumbnail for a dynamic user interaction experience.

Potential Use Cases:

  • Blog websites that want to enhance link engagement with visual previews.
  • E-commerce sites to provide previews of product links.
  • Social media platforms for sharing links with visual context.
  • Educational websites linking to resources or articles.
  • Portfolio sites showcasing projects with external links.

Conclusion: The Link Preview component is a practical tool for enhancing link interactions, making it suitable for various web applications that benefit from visual link previews.

Description from Webflow:  
Usage: Add `auto-link-preview` attribute to any <a> tag. Uses thum.io to automatically fetch website screenshot. Optionally set its value to a thumbnail URL of your choosing. Requires: GSAP (for x coordinate thumbnail position tracking animation) Works with both :focus and :hover states. Devices: window.matchMedia("(hover: hover) and (pointer: fine)").matches;
Tags from Webflow: 
hovereffect,  hover,  mouseover,  focus
.