Skip to content
dotdotdot.js, advanced cross-browser ellipsis for multiple line content.
TypeScript HTML JavaScript
Branch: master
Clone or download
Fred Heusschen
Fred Heusschen bugfix
Latest commit 02492f6 Jan 7, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist bugfix Jan 7, 2020
src bugfix Jan 7, 2020
.gitignore
CONTRIBUTING.md small improvement Sep 17, 2017
LICENSE.txt version 3 Sep 15, 2017
README.md updated readme browser support Feb 14, 2019
composer.json bugfix Jan 7, 2020
gulpfile.js esp file Apr 24, 2019
index.html
package.json bugfix Jan 7, 2020
tsconfig.json version 4.0.7 Apr 23, 2019

README.md

dotdotdot

Dotdotdot is a javascript plugin for truncating multiple line content on a webpage. It uses an ellipsis to indicate that there is more text than currently visible. Optionally, the plugin can keep a "read more" anchor visible at the end of the content, after the ellipsis.

Demo

When using dotdotdot to truncate HTML, you don't need to worry about your HTML markup, the plugin knows its way around most elements. It's responsive, so when resizing the browser, the ellipsis will update on the fly.

Need help? Have a look at the documentation.

Licence

The dotdotdot javascript plugin is licensed under the CC-BY-NC-4.0 license.
You can purchase a license if you want to use it in a commercial project.

Browser support

The dotdotdot javascript plugin targets modern browsers that support ES5, meaning Internet Explorer 10 and earlier are not supported. For Internet Explorer 11, you''ll need some polyfills. If you need support for Internet Explorer 9 or 10, use the legacy (jQuery) version: version 3.2.3.

Development

This project uses Gulp(4) to minify the JS file. If you are unfamiliar with Gulp, check this tutorial on how to get started.
Run gulp watch in the command-line to put a watch on the files and run all scripts immediately after saving your changes.

You can’t perform that action at this time.