├── .gitignore ├── LICENSE ├── README.md ├── package-lock.json ├── package.json ├── public ├── colorpicker.png ├── css.png ├── csspicker.png ├── favicon-16x16.png ├── favicon-32x32.png ├── github-bg.png ├── index.html └── manifest.json ├── src ├── App.css ├── App.js ├── App.test.js ├── components │ ├── ColorPicker │ │ └── ColorPicker.js │ ├── EffectBoard │ │ ├── EffectBoard.css │ │ └── EffectBoard.js │ ├── Header │ │ ├── Header.css │ │ └── Header.js │ └── SingleEffect │ │ ├── SingleEffect.css │ │ └── SingleEffect.js ├── css-letter.png ├── csswand.png ├── effects │ ├── 3DShadow.js │ ├── GrowBtn.js │ ├── Input1.js │ ├── Opacity.js │ ├── PressDown.js │ ├── Ripple.js │ ├── Rotate30.js │ ├── Shrink.js │ ├── Spinner1.js │ ├── Spinner2.js │ ├── Spinner3.js │ ├── Spinner4.js │ ├── Spinner5.js │ ├── SquaretoCircle.js │ └── Swing.js ├── index.css ├── index.js ├── logo.svg └── serviceWorker.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | 25 | 26 | .firebaserc 27 | firebase.json 28 | ../public/manifest.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Oliver Gomes 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

CSS Wand

2 |

3 | 4 | 5 | 6 |

7 | 8 |

9 | CSS Wand - Easy copy-paste beautiful CSS animations | Product Hunt Embed 10 | CSS Wand - Easy copy-paste beautiful CSS animations | Product Hunt Embed 11 |

12 | 13 |
14 |

Hover your wand and use your magic spell to copy beautiful css

15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | ## ✨ Features 23 | 24 | - Easy Copy-Paste Beautiful CSS. 25 | - Amazing Built-in Color Picker 26 | - Includes Hover, Loading and more effects. 27 | 28 | ## ⌨️ Development 29 | 30 | Clone locally: 31 | 32 | ```bash 33 | $ git clone https://github.com/oliver-gomes/csswand.git 34 | $ cd csswand 35 | $ npm install 36 | $ npm start 37 | ``` 38 | 39 | ## 🤝 Contributing [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) 40 | 41 | I am taking request for more CSS effect, if you have any awesome idea feel free to open an issue stating that CSS effect. I will add it to the app asap. Thanks! 42 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "csswand", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "antd": "^3.17.0", 7 | "emotion": "^10.0.9", 8 | "firebase-tools": "^6.10.0", 9 | "react": "^16.8.6", 10 | "react-color": "^2.17.3", 11 | "react-copy-to-clipboard": "^5.0.1", 12 | "react-dom": "^16.8.6", 13 | "react-scripts": "3.0.1", 14 | "react-twitter-embed": "^2.0.8" 15 | }, 16 | "scripts": { 17 | "start": "react-scripts start", 18 | "build": "react-scripts build", 19 | "test": "react-scripts test", 20 | "eject": "react-scripts eject" 21 | }, 22 | "eslintConfig": { 23 | "extends": "react-app" 24 | }, 25 | "browserslist": { 26 | "production": [ 27 | ">0.2%", 28 | "not dead", 29 | "not op_mini all" 30 | ], 31 | "development": [ 32 | "last 1 chrome version", 33 | "last 1 firefox version", 34 | "last 1 safari version" 35 | ] 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /public/colorpicker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliver-gomes/csswand/84b073c4d5bd70cf81e7fff45e803b86a224acfa/public/colorpicker.png -------------------------------------------------------------------------------- /public/css.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliver-gomes/csswand/84b073c4d5bd70cf81e7fff45e803b86a224acfa/public/css.png -------------------------------------------------------------------------------- /public/csspicker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliver-gomes/csswand/84b073c4d5bd70cf81e7fff45e803b86a224acfa/public/csspicker.png -------------------------------------------------------------------------------- /public/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliver-gomes/csswand/84b073c4d5bd70cf81e7fff45e803b86a224acfa/public/favicon-16x16.png -------------------------------------------------------------------------------- /public/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliver-gomes/csswand/84b073c4d5bd70cf81e7fff45e803b86a224acfa/public/favicon-32x32.png -------------------------------------------------------------------------------- /public/github-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oliver-gomes/csswand/84b073c4d5bd70cf81e7fff45e803b86a224acfa/public/github-bg.png -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 | 12 | 16 | 17 | 18 | 19 | 23 | 27 | 33 | 34 | 38 | 44 | 45 | 54 | CSSWAND 55 | 56 | 57 | 58 |
59 | 60 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "CSSWAND", 3 | "name": "CSSWAND APP", 4 | "icons": [ 5 | { 6 | "src": "css.png", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | background-color: rgb(19, 23, 44); 4 | height: 100vh; 5 | color: #fff; 6 | font-family: "Noto Sans JP", sans-serif; 7 | margin-bottom: 50px; 8 | } 9 | 10 | .App-header { 11 | background-color: #282c34; 12 | min-height: 100vh; 13 | display: flex; 14 | flex-direction: column; 15 | align-items: center; 16 | justify-content: center; 17 | font-size: calc(10px + 2vmin); 18 | color: white; 19 | } 20 | 21 | .App-link { 22 | color: #61dafb; 23 | } 24 | 25 | /* @media (max-width: 768px) { 26 | .App { 27 | height: 170vh; 28 | } 29 | } */ 30 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import "./App.css"; 3 | import Header from "./components/Header/Header"; 4 | import EffectBoard from "./components/EffectBoard/EffectBoard"; 5 | 6 | import { css } from "emotion"; 7 | import cssLetter from "./css-letter.png"; 8 | import ColorPicker from "./components/ColorPicker/ColorPicker"; 9 | 10 | function App() { 11 | return ( 12 |
13 |
14 | 15 |
16 |

24 | Welcome to 25 |

26 |
27 | css gradient 28 |

36 | Easy Copy-Paste Beautiful CSS
37 | That can be easily customized further at your own choice 38 |

39 |
40 | 41 | 42 | 43 | 44 |
45 | ); 46 | } 47 | 48 | export default App; 49 | -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './App'; 4 | 5 | it('renders without crashing', () => { 6 | const div = document.createElement('div'); 7 | ReactDOM.render(, div); 8 | ReactDOM.unmountComponentAtNode(div); 9 | }); 10 | -------------------------------------------------------------------------------- /src/components/ColorPicker/ColorPicker.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { SketchPicker } from "react-color"; 3 | import { css } from "emotion"; 4 | import { Modal, Icon } from "antd"; 5 | import { CopyToClipboard } from "react-copy-to-clipboard"; 6 | 7 | export default class ColorPicker extends Component { 8 | state = { 9 | visible: false, 10 | background: "#1d9af2", 11 | copiedHTML: false, 12 | copiedCSS: false 13 | }; 14 | 15 | showModal = () => { 16 | this.setState({ 17 | visible: true 18 | }); 19 | }; 20 | 21 | handleOk = e => { 22 | console.log(e); 23 | this.setState({ 24 | visible: false 25 | }); 26 | }; 27 | 28 | handleCancel = e => { 29 | console.log(e); 30 | this.setState({ 31 | visible: false 32 | }); 33 | }; 34 | 35 | handleChangeComplete = color => { 36 | this.setState({ background: color.hex }); 37 | }; 38 | 39 | render() { 40 | return ( 41 |
42 | 47 | 54 | 58 | Color Picker 59 | 60 | 61 | 67 |
73 | 78 |
79 | 80 |
88 |
98 | this.setState({ copiedHTML: true })} 101 | > 102 | 116 | 117 |
118 | {this.state.copiedHTML ? ( 119 | 147 | Copied 148 | 149 | ) : null} 150 | 151 |

156 | Click on the Button to copy the selected color 157 |

158 | 159 |
160 | ); 161 | } 162 | } 163 | -------------------------------------------------------------------------------- /src/components/EffectBoard/EffectBoard.css: -------------------------------------------------------------------------------- 1 | /* @media (max-width: 576px) { 2 | button { 3 | color: red !important; 4 | } 5 | } 6 | 7 | @media (max-width: 1560px) { 8 | button { 9 | color: red !important; 10 | } 11 | } 12 | 13 | @media (max-width: 1200px) { 14 | .main-header { 15 | margin: 0px 0px !important; 16 | color: red; 17 | } 18 | } 19 | 20 | @media (max-width: 768px) { 21 | button { 22 | margin: 20px 0; 23 | color: red; 24 | } 25 | } 26 | 27 | .main-header { 28 | margin: 0px 400px; 29 | } 30 | 31 | .grid-container { 32 | display: grid; 33 | grid-template-columns: auto 100px 100px; 34 | } 35 | 36 | .item1 { 37 | display: flex; 38 | align-content: flex-start; 39 | } 40 | 41 | .item2, 42 | .item3 { 43 | display: flex; 44 | align-items: center; 45 | align-content: center; 46 | } */ 47 | 48 | .grid { 49 | display: grid; 50 | grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); 51 | grid-gap: 5px; 52 | max-width: 1280px; 53 | margin: 0 auto; 54 | /* grid-column-gap: 10px; */ 55 | } 56 | 57 | .grid div { 58 | display: flex; 59 | width: 100%; 60 | margin: 20px 0; 61 | align-items: center; 62 | justify-content: center; 63 | /* background-color: red; */ 64 | } 65 | 66 | .grid-radio { 67 | display: grid; 68 | margin: 50px auto 100px auto; 69 | } -------------------------------------------------------------------------------- /src/components/EffectBoard/EffectBoard.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | 3 | import "antd/dist/antd.css"; 4 | import SingleEffect from "../SingleEffect/SingleEffect"; 5 | import "./EffectBoard.css"; 6 | 7 | import { css } from "emotion"; 8 | import { Radio } from "antd"; 9 | 10 | import { 11 | growBtn, 12 | growBtnStyle, 13 | growHtmlVariable, 14 | growCssVariable 15 | } from "../../effects/GrowBtn"; 16 | import { 17 | shrink, 18 | shrinkStyle, 19 | shrinkHtmlVariable, 20 | shrinkCssVariable 21 | } from "../../effects/Shrink"; 22 | import { 23 | opacity, 24 | opacityStyle, 25 | opacityHtmlVariable, 26 | opacityCssVariable 27 | } from "../../effects/Opacity"; 28 | import { 29 | rotate, 30 | rotateStyle, 31 | rotateHtmlVariable, 32 | rotateCssVariable 33 | } from "../../effects/Rotate30"; 34 | import { 35 | squarecircle, 36 | squarecircleStyle, 37 | squarecircleHtmlVariable, 38 | squarecircleCssVariable 39 | } from "../../effects/SquaretoCircle"; 40 | import { 41 | tdshadow, 42 | tdshadowStyle, 43 | tdshadowHtmlVariable, 44 | tdshadowCssVariable 45 | } from "../../effects/3DShadow"; 46 | import { 47 | swing, 48 | swingStyle, 49 | swingHtmlVariable, 50 | swingCssVariable 51 | } from "../../effects/Swing"; 52 | import { 53 | spinner1, 54 | spinner1Style, 55 | spinner1HtmlVariable, 56 | spinner1CssVariable 57 | } from "../../effects/Spinner1"; 58 | import { 59 | spinner2, 60 | spinner2Style, 61 | spinner2HtmlVariable, 62 | spinner2CssVariable 63 | } from "../../effects/Spinner2"; 64 | import { 65 | spinner3, 66 | spinner3Style, 67 | spinner3HtmlVariable, 68 | spinner3CssVariable 69 | } from "../../effects/Spinner3"; 70 | import { 71 | spinner4, 72 | spinner4Style, 73 | spinner4HtmlVariable, 74 | spinner4CssVariable 75 | } from "../../effects/Spinner4"; 76 | import { 77 | spinner5, 78 | spinner5Style, 79 | spinner5HtmlVariable, 80 | spinner5CssVariable 81 | } from "../../effects/Spinner5"; 82 | import { 83 | pressDown, 84 | pressDownStyle, 85 | pressDownHtmlVariable, 86 | pressDownCssVariable 87 | } from "../../effects/PressDown"; 88 | 89 | import { 90 | input1, 91 | input1HtmlVariable, 92 | input1CssVariable 93 | } from "../../effects/Input1"; 94 | 95 | import { 96 | ripple, 97 | rippleStyle, 98 | rippleHtmlVariable, 99 | rippleCssVariable 100 | } from "../../effects/Ripple"; 101 | 102 | const RadioGroup = Radio.Group; 103 | 104 | export default class EffectBoard extends Component { 105 | state = { 106 | value: 1 107 | }; 108 | onChange = e => { 109 | console.log("radio checked", e.target.value); 110 | this.setState({ 111 | value: e.target.value 112 | }); 113 | }; 114 | 115 | render() { 116 | return ( 117 | <> 118 |
119 | 120 | 126 | All 127 | 128 | 134 | Hover 135 | 136 | 142 | Loading 143 | 144 | 145 | {/* 151 | D 152 | */} 153 | 154 |
155 | 156 | {/* Row 1 */} 157 |
158 |
167 | 181 |
182 |
191 | 198 |
199 |
208 | 215 |
216 |
225 | 232 |
233 |
242 | 250 |
251 |
260 | 267 |
268 | {/* Row 2 */} 269 | {/*
*/} 270 |
279 | 286 |
287 |
296 | 303 |
304 |
313 | 320 |
321 | 322 |
331 | 337 |
338 |
347 | 354 |
355 |
364 | 371 |
372 |
381 | 388 |
389 |
400 | 407 |
408 |
417 | 424 |
425 |
426 | 427 | ); 428 | } 429 | } 430 | -------------------------------------------------------------------------------- /src/components/Header/Header.css: -------------------------------------------------------------------------------- 1 | .header-main { 2 | display: grid; 3 | grid-auto-columns: 1fr 200px; 4 | } 5 | 6 | .grid-header { 7 | display: grid; 8 | min-height: 100px; 9 | grid-auto-flow: column; 10 | padding-top: 20px; 11 | } 12 | 13 | .item2 { 14 | display: grid; 15 | justify-content: center; 16 | align-content: center; 17 | align-items: center; 18 | grid-auto-flow: column; 19 | } 20 | 21 | .product-header { 22 | display: block; 23 | min-height: 50px; 24 | } 25 | 26 | 27 | @media (max-width: 576px) { 28 | .product-header { 29 | display: none; 30 | } 31 | } -------------------------------------------------------------------------------- /src/components/Header/Header.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | // import cssWand from "../../css-wand.png"; 4 | import cssWand from "../../csswand.png"; 5 | import { TwitterShareButton } from "react-twitter-embed"; 6 | 7 | import "./Header.css"; 8 | 9 | export default function HeaderNew() { 10 | return ( 11 |
12 | 38 |
39 |
40 | logo 41 |
42 |
43 |