GithubHelp home page GithubHelp logo

poster's Introduction

poster

Create BIG, BOLD poster text with little effort. In essence, this plugin resizes text to best fit it's parent container. The algorithm will first calculate the ideal number of characters per line based on the ammount of text and the vertical space available. It will then split the text into phrases and resize them accordingly. This plugin is based on slabText, which itself is based on the slabtype algorithm. Poster, however, takes into account the container's height.

HTML:

<div id="headline">I love deadlines. I like the whooshing sound they make as they fly by. -Douglas Adams</div>

CSS:

#headline {
  width: 400px
  height: 600px
}

JS:

$('#headline').poster()

Available settings:

$('#headline').poster(
    padding: false              // Force padding
    wrapAmpersand: true         // Wrap ampersand with a div
    container: false            // Force containing element
)

poster's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.