CSS3の「text-shadow」を使ったデザインの例を作りました。
text-shadowを使いこなせば、テキストに対して色々なエフェクトをかけることが可能です。もちろんPhotoshopやIllustratorを用いて作られたものには敵いませんが、少しコードを書き換えるだけで色や文章を変更出来るというメリットがあります。また、画像と違って閲覧者がコピー出来るという利点もあります。
See the Pen XbpbPM by Setoda Kouki (@LeoTiger) on CodePen.
これが基本です。See the Pen Xbpbrm by Setoda Kouki (@LeoTiger) on CodePen.
シャドウを下方向に1pxずつ動かしていくつか配置すると、立体的なテキストを作成できます。See the Pen pJRJEz by Setoda Kouki (@LeoTiger) on CodePen.
今度は右下に1pxずつ配置。See the Pen Nqdqdm by Setoda Kouki (@LeoTiger) on CodePen.
なんかよく分かりません。See the Pen BNpNLG by Setoda Kouki (@LeoTiger) on CodePen.
ぼかし範囲を広げた白いシャドウを配置。See the Pen bdgdNQ by Setoda Kouki (@LeoTiger) on CodePen.
テキスト自体の色を「color: transparent;」で透過し、シャドウのみを表示させています。See the Pen JdEdYE by Setoda Kouki (@LeoTiger) on CodePen.
浮き出たようなデザイン。See the Pen rVjVxO by Setoda Kouki (@LeoTiger) on CodePen.
さっきの逆です。See the Pen wagaMQ by Setoda Kouki (@LeoTiger) on CodePen.
テキストの色に背景色と同じ値を指定し、シャドウを4方向(左上・右上・右下・左下)に配置すると、縁取りしたような文字が作れます。See the Pen xGgGJX by Setoda Kouki (@LeoTiger) on CodePen.
縁取りのテクニックにシャドウを追加しただけです。