散々擦られているネタですが, 昨日PPAPが流行語にも選ばれましたのでCSS(SCSS)のみで実装してみました。 参考 http://qiita.com/hmhmsh/items/a9c1848437b765e538d3 http://qiita.com/on0z/items/ef32f79bde5452a2ccec 仕様 Pen: ✏️ Pineapple: 🍍 Apple: 🍎 Pen, Pineapple, Apple, Penをランダムに出力して ✏️🍍🍎✏️ の並びが来たら"Pen Pineapple Apple Pen !!"と出力して終了します。 デモ PPAP SCSS on Codepen キャプチャ 処理部分 $content: ""; $pen: "✏️"; $pineaple: "🍍"; $apple: "🍎"; $array: $pen, $apple