Code Monkey home page Code Monkey logo

more's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

more's Issues

animate toggle

hi. love this script. just can't figure out one thing...

i changed lines 122 & 124 in the jquery.more.js file from having just toggle() to slideToggle(900). this seems to only affect the subsequent paragraphs rather than the one that's truncated.

is it possible to have the truncated paragraph animate like the following ones or not since it's being pieced back together from being split up for the truncation?

does that make sense?
THANKS!

Truncating a container with multiple paragraphs

Hi. Great plugin - small and do what it suppose to do :)

I have a situation and I don't know if it can be solved with this plugin.

I have a markup like this (.truncate is used for truncating text with this plugin):

<div class="truncate">
    <p>Paragraph 1</p>
    <p>Paragraph 2</p>
    <p>...</p>
</div>

When I load this markup in my browser everything works as expected but all my paragraphs are merged in one long piece of text which I don't want. I want to keep markup structure and all of my paragraphs when I click on Show more link. Is it possible to achieve something like this?

Btw, this is situation with a comment or a note which can contain multiple paragraphs (even some other HTML elements - anchors, lists, etc..).

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.