{"id":14965803,"url":"https://github.com/minimac/magic","last_synced_at":"2025-05-13T19:04:13.780Z","repository":{"id":8923647,"uuid":"10652377","full_name":"miniMAC/magic","owner":"miniMAC","description":"CSS3 Animations with special effects","archived":false,"fork":false,"pushed_at":"2022-08-23T21:08:20.000Z","size":622,"stargazers_count":8537,"open_issues_count":0,"forks_count":1180,"subscribers_count":288,"default_branch":"master","last_synced_at":"2025-05-06T10:52:21.576Z","etag":null,"topics":["animation","css","css3","css3-animations","gulp","magic","npm","yarn"],"latest_commit_sha":null,"homepage":"https://www.minimamente.com/project/magic/","language":"SCSS","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/miniMAC.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":"2013-06-12T21:12:04.000Z","updated_at":"2025-05-02T18:39:43.000Z","dependencies_parsed_at":"2022-07-10T01:31:22.573Z","dependency_job_id":null,"html_url":"https://github.com/miniMAC/magic","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniMAC%2Fmagic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniMAC%2Fmagic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniMAC%2Fmagic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniMAC%2Fmagic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miniMAC","download_url":"https://codeload.github.com/miniMAC/magic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254010797,"owners_count":21998993,"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":["animation","css","css3","css3-animations","gulp","magic","npm","yarn"],"created_at":"2024-09-24T13:35:19.246Z","updated_at":"2025-05-13T19:04:13.762Z","avatar_url":"https://github.com/miniMAC.png","language":"SCSS","readme":":tophat: magic\n---------------\n\nCSS3 Animations with special effects. **(→ 3.1 kB gzip)**\n\n## Demo\n\nCheckout the demo for the animations [here](https://www.minimamente.com/project/magic/)\n\n## **Table of Contents**\n\n- [Installation](#installation)\n- [Getting Started](#getting-started)\n- [Usage with JavaScript](#usage-with-javascript)\n- [Usage with jQuery](#usage-with-jquery)\n- [HTML \u0026 CSS tips](#html--css-tips)\n- [:tada: Gulp and SCSS (SASS) compiling](#tada-gulp-and-scss-sass-compiling)\n- [:white_check_mark: Browser Support](#white_check_mark-browser-support)\n\n\n## Installation\n\n**GitHub Package Registry** - [Package url](https://github.com/miniMAC/magic/packages/24129)\n```bash\nnpm install @minimac/magic.css\n```\n\n**NPM** - [Package url](https://www.npmjs.com/package/magic.css)\n```bash\nnpm i magic.css\n```\n\n**YARN** - [Package url](https://yarnpkg.com/en/package/magic.css)\n```bash\nyarn add magic.css\n```\n\n## Getting Started\n\nInclude the file **magic.css** or include the minified version **magic.min.css**\n\n```html\n\u003clink rel=\"stylesheet\" href=\"yourpath/magic.css\"\u003e\n```\n\nor\n\n```html\n\u003clink rel=\"stylesheet\" href=\"yourpath/magic.min.css\"\u003e\n```\n\n## Usage with JavaScript\n\nThis is a sample code for on hover effect with **JavaScript**.\nFirst, Include the class `magictime` and then a desired animation class.\n```js\nconst selector = document.querySelector('.yourdiv')\nselector.classList.add('magictime', 'puffIn')\n```\n\nIf you want to load the animation after certain time, you can use this example:\n```js\n//set timer to 5 seconds, after that, load the magic animation\nfunction myFunction() {\n    const selector = document.querySelector('.yourdiv')\n    selector.classList.add('magictime', 'puffIn')\n}\nsetTimeout(myFunction, 5000);\n```\n\nIf you want to load the animation after certain time but with an infinite loop, you can use this example:\n```js\n//set timer to 3 seconds, after that, load the magic animation and repeat forever\nfunction myFunction() {\n    const selector = document.querySelector('.yourdiv')\n    selector.classList.add('magictime', 'puffIn')\n}\nsetInterval(myFunction, 3000);\n```\n\n## Usage with jQuery\n\nThis is a sample code for on hover effect with jQuery.\nFirst, Include the class `magictime` and then the desired animation class.\n```js\n$('.yourdiv').hover(function () {\n    $(this).addClass('magictime puffIn');\n});\n```\n\nIf you want to load the animation after certain time, you can use this example:\n```js\n//set timer to 5 seconds, after that, load the magic animation\nsetTimeout(function(){\n    $('.yourdiv').addClass('magictime puffIn');\n}, 5000);\n```\n\nIf you want to load the animation after certain time but with infinite loop, you can use this example:\n```js\n//set timer to 3 seconds, after that, load the magic animation and repeat forever\nsetInterval(function(){\n    $('.yourdiv').toggleClass('magictime puffIn');\n}, 3000 );\n```\n## HTML \u0026 CSS tips\n\nYou can **change the time** of the animation by setting the class `magictime` for example:\n```css\n.magictime {\n    -webkit-animation-duration: 3s;\n    animation-duration: 3s;\n}\n```\n\n**Default** CSS timing is:\n```css\n.magictime {\n    -webkit-animation-duration: 1s;\n    animation-duration: 1s;\n}\n```\n\nIf you want to assign the **timing to a specific animation**, you can use the following code *(use 2 class)*:\n```css\n.magictime.magic {\n    -webkit-animation-duration: 10s;\n    animation-duration: 10s;\n}\n```\n\n## Animation Classes\n\n| MAGIC EFFECTS | BLING     | STATIC EFFECTS      | STATIC EFFECTS OUT | PERSPECTIVE            | ROTATE      |\n|---------------|-----------|---------------------|--------------------|------------------------|-------------|\n| magic         | puffIn    | openDownLeft        | openDownLeftOut    | perspectiveDown        | rotateDown  |\n| twisterInDown | puffOut   | openDownRight       | openDownRightOut   | perspectiveUp          | rotateUp    |\n| twisterInUp   | vanishIn  | openUpLeft          | openUpLeftOut      | perspectiveLeft        | rotateLeft  |\n| swap          | vanishOut | openUpRight         | openUpRightOut     | perspectiveRight       | rotateRight |\n|               |           | openDownLeftReturn  |                    | perspectiveDownReturn  |             |\n|               |           | openDownRightReturn |                    | perspectiveUpReturn    |             |\n|               |           | openUpLeftReturn    |                    | perspectiveLeftReturn  |             |\n|               |           | openUpRightReturn   |                    | perspectiveRightReturn |             |\n\n\n| SLIDE            | MATH      | TIN         | BOMB         | BOING        | ON THE SPACE  |\n|------------------|-----------|-------------|--------------|--------------|---------------|\n| slideDown        | swashOut  | tinRightOut | bombRightOut | boingInUp    | spaceOutUp    |\n| slideUp          | swashIn   | tinLeftOut  | bombLeftOut  | boingOutDown | spaceOutRight |\n| slideLeft        | foolishIn | tinUpOut    |              |              | spaceOutDown  |\n| slideRight       | holeOut   | tinDownOut  |              |              | spaceOutLeft  |\n| slideDownReturn  |           | tinRightIn  |              |              | spaceInUp     |\n| slideUpReturn    |           | tinLeftIn   |              |              | spaceInRight  |\n| slideLeftReturn  |           | tinUpIn     |              |              | spaceInDown   |\n| slideRightReturn |           | tinDownIn   |              |              | spaceInLeft   |\n\n:tada: Gulp and SCSS (SASS) compiling\n---------------\n\nIf you want to customize the CSS files, now you will have the chance. For example, if you want to include only certain animations, you will have to go to this file:\n\n```html\nassets/scss/magic.scss\n```\n\nComment or uncomment your desired file and run from terminal the following commands:\n\n```bash\nnpm install\n```\n\nand last command:\n\n```bash\ngulp\n```\n\n**Automatically** this generate the new files!\n\n\n:white_check_mark: Browser Support\n---------------\n\n**Browser** | Chrome | Firefox | Safari | iOS Safari | Opera | Android | Android Chrome | IE | Opera Mini\n--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---:\n**Version** | 31+ | 31+ | 7+ | 7.1+ | 27+ | 4.1+ | 42+ | 10+ | :x:\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminimac%2Fmagic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminimac%2Fmagic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminimac%2Fmagic/lists"}