承接 softdude/scrolltop 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

softdude/scrolltop

最新稳定版本:0.1.8

Composer 安装命令:

composer require softdude/scrolltop

包简介

A Craft CMS 5 plugin that adds a scroll-to-top button to your site.

README 文档

README

A lightweight Craft CMS 4/5 plugin that adds a customizable scroll-to-top button to your site.

System Requirements

  • Craft CMS: 4.0.0 or later
  • PHP: 8.0 or later
  • Browser Support: All modern browsers (Chrome, Firefox, Safari, Edge)

Features

  • Adds a customizable scroll-to-top button to your frontend
  • Control Panel settings for easy customization
  • Smooth scrolls the page to the top
  • Lightweight: only 2.4 KB minified (1.07 KB gzipped)
  • Enable/disable toggle
  • Customizable position, colors, size, and animation

Installation

  1. Run this command in your project directory:
composer require softdude/scrolltop
  1. Install in Craft by going to Settings → Plugins → Install "Scroll to Top"

Usage

Once installed and enabled, the plugin will automatically add a scroll-to-top button to your site's frontend. The button will appear after scrolling down and will smoothly scroll the page to the top when clicked.

Quick Start

  1. Install the plugin (see Installation section above)
  2. Go to Settings → Scroll to Top in your Craft Control Panel
  3. Configure your preferences (colors, position, size, etc.)
  4. Save your settings
  5. Visit your frontend and scroll down to see the button in action!

The button will automatically appear when users scroll past the threshold you set, and disappear when they scroll back to the top.

Customization

All customization is done through the Craft Control Panel:

  1. Go to Scroll to Top in your Control Panel
  2. Configure the button settings:
    • Enable/Disable: Turn the button on or off
    • Position: Choose from bottom-right, bottom-left, top-right, top-left
    • Colors: Customize button color, hover color, and text color
    • Size: Adjust button size (default: 48px)
    • Icon: Choose from various icon types or use custom SVG
    • Animation: Enable/disable smooth scrolling and adjust speed
    • Threshold: Set scroll distance before button appears

Support

For issues, questions, or custom development, contact: thejahid@icloud.com

You can also create an issue in the plugin repository.

统计信息

  • 总下载量: 24
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: Twig

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-07-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固