{"id":16690336,"url":"https://github.com/mrsaints/morphist","last_synced_at":"2025-03-21T18:33:43.295Z","repository":{"id":15233922,"uuid":"17962682","full_name":"MrSaints/Morphist","owner":"MrSaints","description":"A simple, high-performance and cross-browser jQuery slider / slideshow / carousel plugin for child objects powered by Animate.css.","archived":false,"fork":false,"pushed_at":"2016-08-06T13:43:41.000Z","size":119,"stargazers_count":62,"open_issues_count":7,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-18T04:09:19.513Z","etag":null,"topics":["animatecss","carousel","carousel-plugin","cross-browser","css","css-animations","css3","css3-animations","html","javascript","jquery","rotating-objects","smooth-animations"],"latest_commit_sha":null,"homepage":"https://morphist.fyianlai.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrSaints.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-20T23:57:46.000Z","updated_at":"2024-11-11T12:57:59.000Z","dependencies_parsed_at":"2022-08-04T02:45:22.790Z","dependency_job_id":null,"html_url":"https://github.com/MrSaints/Morphist","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrSaints%2FMorphist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrSaints%2FMorphist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrSaints%2FMorphist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrSaints%2FMorphist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrSaints","download_url":"https://codeload.github.com/MrSaints/Morphist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244849808,"owners_count":20520792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animatecss","carousel","carousel-plugin","cross-browser","css","css-animations","css3","css3-animations","html","javascript","jquery","rotating-objects","smooth-animations"],"created_at":"2024-10-12T15:51:10.599Z","updated_at":"2025-03-21T18:33:42.932Z","avatar_url":"https://github.com/MrSaints.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Morphist\n========\n\n[![Dev Dependency Status](https://david-dm.org/MrSaints/Morphist/dev-status.svg?style=flat)](https://david-dm.org/MrSaints/Morphist#info=devDependencies)\n\nA simple, high-performance and cross-browser [jQuery][jquery] slider / slideshow / carousel plugin for child objects powered by [Animate.css][animatecss].\n\nIt cycles through an element's [child] objects containing any content (i.e. images, text, etc) in quick succession and it is a great tool for displaying tweets from Twitter or items from other feeds.\nIt is a spin-off project of [Morphext](//github.com/MrSaints/Morphext) (a simple text rotator).\n\n[Website / Demo][website]\n\n\nInstall\n-------\n\nDownload from the [project page][downloads].\n\nInstall with [Bower][bower]: `bower install --save Morphist`\n\n\nUsage\n-----\n\n1. Import the latest [Animate.css][animatecss] and [jQuery][jquery] library into your HTML.\n\n2. Import `morphist.css` and include `morphist.min.js` in your HTML document.\n\n3. Encapsulate your rotating objects (children, e.g. list item) in an element (parent, e.g. unordered list):\n\n    ```html\n    I am a...\n    \u003cul id=\"js-rotating\"\u003e\n        \u003cli\u003eSo Simple\u003c/li\u003e\n        \u003cli\u003eVery Doge\u003c/li\u003e\n        \u003cli\u003eMuch Wow\u003c/li\u003e\n        \u003cli\u003eSuch Cool\u003c/li\u003e\n    \u003c/ul\u003e\n    ...child object rotator.\n    ```\n\n4. Trigger the plugin by calling Morphist() on the element (parent) containing the rotating objects (children):\n\n    ```js\n    $(\"#js-rotating\").Morphist();\n    ```\n\nA demo titled `index.html` is included in this repository. Open it to see the end-result.\n\n\nOptions\n-------\n\nMorphist exposes the following options to alter the behaviour of the plugin:\n\nOption | Type | Default | Description\n--- | --- | --- | ---\nanimateIn | `string` | `bounceIn` | The entrance animation type (In).\nanimateOut | `string` | `rollOut` | The exit animation type (Out). Refer to [Animate.css][animatecss] for a list of available animations.\nspeed | `int` | `2000` | The delay between the changing of each object in milliseconds.\ncomplete | `object Function` | `null` | A callback that is executed after an item is animated in.\n\nThey may be used like so:\n\n```js\n$(\"#js-rotating\").Morphist({\n    animateIn: \"fadeIn\", // Overrides default \"bounceIn\"\n    animateOut: \"zoomOut\", // Overrides default \"rollOut\"\n    speed: 3000, // Overrides default 2000\n    complete: function () {\n        // Overrides default empty function\n    }\n});\n```\n\nThe plugin relies heavily on [Animate.css][animatecss] for its [smooth, high performance animations](http://www.html5rocks.com/en/tutorials/speed/high-performance-animations/) to transition between each object. Thus, the default animation speed (different from the interval between each object as described above) may be altered via CSS:\n\n```css\n#yourElement, .yourClass {\n    /* Overrides Animate.css 1s duration */\n    -vendor-animation-duration: 3s;\n}\n```\n\n\n\"Issues\"\n----------\n\nRefer to [Morphext's \"Issues\"](https://github.com/MrSaints/Morphext#issues).\n\nShould you encounter any problems or require assistance with this plugin, simply open a GitHub issue in this repository or you may contact [me via Twitter][twitter].\n\n\nPrerequisites\n-------------\n\n- [jQuery][jquery]\n- [Animate.css][animatecss]\n\n\nLicense\n-------\n\nMorphist is licensed under the MIT license [(http://ian.mit-license.org/)](http://ian.mit-license.org/).\n\n  [website]: http://morphist.fyianlai.com/\n  [twitter]: https://www.twitter.com/MrSaints\n  [downloads]: https://github.com/MrSaints/Morphist/releases\n\n  [bower]: http://bower.io/\n  [jquery]: https://www.jquery.com/\n  [animatecss]: //daneden.github.io/animate.css/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrsaints%2Fmorphist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrsaints%2Fmorphist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrsaints%2Fmorphist/lists"}