Giter Club home page Giter Club logo

Comments (5)

MrSaints avatar MrSaints commented on May 27, 2024

Hi @luminatee, unfortunately, I made Morphext to serve as a simple text rotator. It is not meant for rotating content with HTML and I do not intend on implementing this in the near future.

You can however, modify the source so that it will not filter out HTML:

  1. https://github.com/MrSaints/Morphext/blob/master/dist/morphext.js#L41
  2. Replace text() with html()

Alternatively, you can look into another project of mine called Morphist. It is similar to Morphext except that it is slightly more advance and it can rotate HTML. It is meant to be used for rotating the children in a parent object (good for stuff like tweets).

Hope that helps.

Thanks.

from morphext.

luminatee avatar luminatee commented on May 27, 2024

Thanks for answer. I just set css rules for parent-node and all ok.

Good work man!

Regards, Alex.

from morphext.

MrSaints avatar MrSaints commented on May 27, 2024

Awesome. Let me know if you have any other problems.

Cheers.

from morphext.

dangelion avatar dangelion commented on May 27, 2024

I just opened this issue #13

Have you implemented this feature? Like an option cutHtml:true/false ?

If not do you intend to do it or it's better I search for something else?

It makes sense to use Morphist in place of this, only because of the "html cut" problem?

from morphext.

MrSaints avatar MrSaints commented on May 27, 2024

@dangelion, as my previous post stated, I don't intend on implementing this for Morphext. It's meant to be simple. I strongly recommend you look into Morphist or consider forking this project, and making the appropriate changes I mentioned in #1 (comment) (i.e. text to html fn).

from morphext.

Related Issues (20)

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.