カテゴリー
【Dart Sass対応】Sassを利用してカスタムカーソルを使ってみたお話
※ 当ページには【広告/PR】を含む場合があります。
2019/12/10
@import
cssのカーソルのスタイリング基本形
css カーソル
pointer
my-cursor
.my-cursor {
cursor: pointer;
}
cssのカスタムカーソルの画像準備
cursor: url(ファイルパス);
プロジェクトのファイル構造
angular@~10.1.0
$ tree
.
├── my-custom-css-cursor.component.html # メインのhtmlファイル
├── my-custom-css-cursor.component.scss # メインのscssファイル
└──cursor-images
├── _clocks.my-custom-css-cursor.component.scss # 時計のbase64画像を保持したカーソル
├── _entry.my-custom-css-cursor.component.scss # エントリーのbase64画像を保持したカーソル
├── _heart.my-custom-css-cursor.component.scss # ハートのbase64画像を保持したカーソル
├── _info.my-custom-css-cursor.component.scss # インフォメーションのbase64画像を保持したカーソル
└── _slipt.my-custom-css-cursor.component.scss # 滑った人のbase64画像を保持したカーソル
html部分の実装
<div class="usual-cursor">
<p>Default Pointer</p>
</div>
<div class="custom-cursor-heart">
<p>Custom Heart Cursor</p>
</div>
<div class="custom-cursor-entry">
<p>Custom Entry Cursor</p>
</div>
<div class="custom-cursor-info">
<p>Custom Info Cursor</p>
</div>
<div class="custom-cursor-clocks">
<p>Custom Clocks Cursor</p>
</div>
<div class="custom-cursor-slipt">
<p>Custom Slipt Cursor</p>
</div>
cursor-images
scssファイルの実装
my-custom-css-cursor.component.scss
@use 'cursor-images/heart.my-custom-css-cursor.component';
@use 'cursor-images/entry.my-custom-css-cursor.component';
@use 'cursor-images/info.my-custom-css-cursor.component';
@use 'cursor-images/clocks.my-custom-css-cursor.component';
@use 'cursor-images/slipt.my-custom-css-cursor.component';
.usual-cursor {
cursor: pointer;
}
@use
base64画像を仕込んだ各scssファイルの実装
時計の画像
_clocks.my-custom-css-cursor.component.scss
.custom-cursor-clocks {
cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAH9ElEQVRoge2YW2xUx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u51Gz4TifA5q9vp46eMveBRZkjMsguPFS2kd9rL1xof0+YxXIcNu43jpM7QODLL14hX6xoxZz7BZOP6DMlp7etlaeZy+kWgOuZGWV4j5mEwuKc/fKccirwNJAA6LYP+SbF4ryCHdZp0x8BEtzFsdLt7tdqvS0QInV+XS5B7iWFsHgbAqKU+WFNP02MWxpvtxJeXJ8k00dXZy7FZDfEkJFZypuhvb59RFfe2d7yPlRWKK+sy4ot5BXmTL0RsI0Tbm5+qAlysuTzRhgUhR76PfOzZFUR+m3zMy96Je13dx9tStiaFOf6xyvmE5VqqRPDvtMzMpFATv0OTjk1AQRqc6VhmHx92gTcq7D8C2jzPvdEzVzRwOtu7uAPkmUDSnwDUNxjwQnPBFn+5gKxiAwX7jP/GRPUByhDNVF2fqbm5HiwA1DeuRbAfKEOQB5tHiAGFdEvSBzycIR44QpRxA1yVBP/j9iutyAC0k8XlhdETgixwtCroxtgfG0eKZE5/MObaEEkoooYQSSugb0v8AXYh4DhlIocEAAAAASUVORK5CYII=") 20 20, auto;
}
エントリーの画像
_entry.my-custom-css-cursor.component.scss
.custom-cursor-entry {
cursor: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiByZ2IoMjU1LCAyNTUsIDI1NSk7IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDJweCIgaGVpZ2h0PSI0MnB4IiB2aWV3Qm94PSItMC41IC0wLjUgNDIgNDIiIGNvbn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GCAb3XkplDRAAAAAElFTkSuQmCC') 40 40, auto;
}
インフォの画像
_info.my-custom-css-cursor.component.scss
.custom-cursor-info {
cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4Igp3aWR0aD0iNTAiIGhlaWdodD0iNTAiCnZpZXdCb3g9IjAgMCA1MCA1MCIKc3R5bGU9IiBmaWxsOiMwMDAwMDA7Ij48cGF0aCBkPSJNIDI1IDIgQyAxMi4zMDkyOTUgMiAyIDEyLjMwOTI5NSAyIDI1IEMgMiAzNy42OTA3MDUgMTIuMzA5Mjk1IDQ4IDI1IDQ4IEMgMzcuNjkwNzA1IDQ4IDQ4IDM3LjY5MDcwNSA0OCAyNSBDIDQ4IDEyLjMwOTI5NSAzNy42OTA3MDUgMiAyNSAyIHogTSAyNSA0IEMgMzYuNjA5ODI0IDQgNDYgMTMuMzkwMTc2IDQ2IDI1IEMgNDYgMzYuNjA5ODI0IDM2LjYwOTgyNCA0NiAyNSA0NiBDIDEzLjM5MDE3NiA0NiA0IDM2LjYwOTgyNCA0IDI1IEMgNCAxMy4zOTAxNzYgMTMuMzkwMTc2IDQgMjUgNCB6IE0gMjUgMTEgQSAzIDMgMCAwIDAgMjIgMTQgQSAzIDMgMCAwIDAgMjUgMTcgQSAzIDMgMCAwIDAgMjggMTQgQSAzIDMgMCAwIDAgMjUgMTEgeiBNIDIxIDIxIEwgMjEgMjMgTCAyMiAyMyBMIDIzIDIzIEwgMjMgMzYgTCAyMiAzNiBMIDIxIDM2IEwgMjEgMzggTCAyMiAzOCBMIDIzIDM4IEwgMjcgMzggTCAyOCAzOCBMIDI5IDM4IEwgMjkgMzYgTCAyOCAzNiBMIDI3IDM2IEwgMjcgMjEgTCAyNiAyMSBMIDIyIDIxIEwgMjEgMjEgeiI+PC9wYXRoPjwvc3ZnPg==") 30 30, auto;
}
スリップする人の画像
_slipt.my-custom-css-cursor.component.scss
.custom-cursor-slipt {
cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAABeklEQVRIib3UMU8UQRjG8R8qR2ljDAUVYmiMlRWFgR4vkcTEjkjBB7AAayv0AxCNJR2huRoSY7CQBsSGAkJiECQ0oI0xUc5iRh3Xubu9BX2SyWTfPPv8d953M1TXKtbO8H5b9aOJz52MFyoCrsd9+18BhuK+k9RqeIID7GMOtUtnBKQneIyZ5Hm2YjZYFGYwmdQOYi1dH89zBs2M73tVwLW4Dye1hYwvVyulVb/b8Aq3hSHPCQP+NeSqgD4882e/X2McF6uG5jSFLwXQXgSdm27hsAA5amVex1vhKiirHqHnKaDlFbIZDVtdQMb8/f83Wpn7Y3hZSA9eZgAP2r3UDWQ6E/5eid+zCBnEAG5iFBN4iK8ZwL1i2Breod4GUna9yH3tm8SwEr8yhWyUDG+gNweoxeMeR+M3PMfVxHMZ97GbCT7FU3S8+q9gPgKa+CTc7/V4stNM+Afc7RRc1A0sZ8J+rhMsCYPu6zY81R1h+EdCfx9hRIlW/Ff9ABPvlB5EuAw+AAAAAElFTkSuQmCC") 20 20, auto;
}
ビルド後のスタイル
まとめ
@use
記事を書いた人
ナンデモ系エンジニア
主にAngularでフロントエンド開発することが多いです。 開発環境はLinuxメインで進めているので、シェルコマンドも多用しております。 コツコツとプログラミングするのが好きな人間です。
カテゴリー