Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


  <meta name="robots" content="noindex,nofollow">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="stylesheet" type="text/css" href="">


  <p class="lead">マウスポインタをメニューの上に持ってきて</p>
  <ul class="gnavi">
    <li class="current"><a href="#">Home</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Service</a></li>
    <li><a href="#">Contact</a></li>



                @charset "utf-8";

共通 横並びのための設定

.gnavi {
  display: flex;
  flex-wrap: wrap; /*スマホ表示折り返し用なのでPCのみなら不要*/
  margin: 0 0 50px 0;
  list-style: none;

.gnavi li a {
  display: block;
  padding: 10px 30px;
  text-decoration: none;
  color: rgba(125, 89, 252, 1);

.gnavi li {
  margin-bottom: 20px;

.gnavi li a {
  position: relative;

.gnavi li.current a,
.gnavi li a:hover {
  color: rgba(125, 89, 252, 1);

.gnavi li a::after {
  content: "";
  position: absolute;
  /* 「bottom: 100%;」でも同じ */
  top: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(
    rgba(253, 199, 141, 1) 11.3%,
    rgba(249, 143, 253, 1) 100.2%
  transition: all 0.3s;
  transform: scale(0, 1); /*X方向0、Y方向1*/
  transform-origin: left top; /*左上基点*/

.gnavi li.current a::after {
  transform: scale(0.2, 1); /*X方向に0.2スケール拡大*/

.gnavi li.current a:hover::after,
.gnavi li a:hover::after {
  transform: scale(1, 1); /*X方向にスケール拡大*/

/*========= レイアウトのためのCSS ===============*/

.lead {
  padding: 30px 20px;