├── .gitignore ├── LICENSE ├── readme.md └── dokaben.css /.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Reona Oshima (totoraj) 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 | 23 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # ドカベンCSS 2 | 3 | ドカベンのタイトル風なアニメーションをさせるCSS 4 | 5 | [Demo](https://totoraj930.github.io/dokaben-css) 6 | 7 | [Download](https://github.com/totoraj930/dokaben-css/archive/master.zip) 8 | 9 | ## 使い方 10 | 11 | 下記のファイルを読み込んでください。 12 | 13 | * dokaben.css 14 | 15 | ```html 16 | 17 | ``` 18 | 19 | 20 | ### 使用例 21 | 22 | #### 基本 23 | ```html 24 |
これはテストです
25 | ``` 26 | 27 | #### 一部だけ 28 | ```html 29 |文章の中のここだけがアニメーションされます。
30 | ``` 31 | 32 | #### コマ落とし? 33 | ```html 34 |35 | コマオトシ アリ 36 | と 37 | コマオトシ ナシ 38 |
39 | ``` 40 | 41 | #### ホバーしたとき 42 | ```html 43 | 44 | ``` 45 | 46 | #### ドカベンっぽい文字 47 | ```html 48 |ドカベン
49 | ``` 50 | 51 | 52 | ### 高度な使い方 53 | 54 | #### 速度を変える 55 | ```html 56 |ハヤイ ヤツ
57 | ``` 58 | 59 | #### コマ落としを調整する 60 | ```html 61 |カクカク
62 | ``` 63 | 64 | ### 各classの説明 65 | 66 | |class|説明| 67 | |-----|-----| 68 | |`.dokaben`|アニメーションさせたい要素につける| 69 | |`.dkbn-up`|起き上がるアニメーション| 70 | |`.dkbn-down`|倒れるアニメーション| 71 | |`.dkbn-loop`|up → down → up...の繰り返し| 72 | |`.dkbn-loop2`|down → up → down...の繰り返し| 73 | |`.dkbn-down-no`|倒れた状態にする| 74 | |`.dkbn-steps`|アニメーションがコマ落ち(18コマ/1アニメーション)になる| 75 | |`.dkbn-hover`|これを付けた要素がホバーされたときに子要素の`.dokaben`がアニメーションを開始する| 76 | |`.dkbn-text`|ドカベンっぽい文字にする| 77 | 78 | 79 | ### 注意 80 | 81 | `.dokaben`を指定した要素は`display: inline-block`になります。 82 | デザインが崩れる原因となりますので入れ子にするなどして対処してください。 83 | 84 | ## 著者 85 | **Reona Oshima (totoraj)** 86 | * [http://totoraj.net](http://totoraj.net/) 87 | * [Twitter: @totoraj930](https://twitter.com/totoraj930/) 88 | 89 | 90 | ## ライセンス 91 | Copyright © 2016 Reona Oshima (totoraj) 92 | This work is released under the MIT License. 93 |