Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ 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.


Save Automatically?

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="viewport" content="width=device-width,initial-scale=1.0">
  <link href="" rel="stylesheet">


  <div class="flipX">
    <a href="#">
      <img src="" alt="">
      <span class="cap">回転X軸+テキストが出現 flipX</span>



                @charset "utf-8";

/* 回転X軸
   ----------------------------- */

.flipX a {
  position: relative;
  display: block;

.flipX img {
  transition: all 0.35s ease; /*移り変わる速さを変更したい場合はこの数値を変更*/
  backface-visibility: hidden; /*三次元になった際に裏面を可視化させない*/

.flipX a:hover img {
  transform: rotateX(-180deg); /*縦軸に回転*/
  opacity: 0;

.flipX span.cap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transition: all 0.35s ease; /*移り変わる速さを変更したい場合はこの数値を変更*/
  transform: rotateX(90deg); /*縦軸に回転*/
  transform-origin: 0% 50%; /*回転する基点*/
  opacity: 0;
  background: #333; /*背景色*/
  color: #fff; /*テキストの色を変えたい場合はここを修正*/
  display: flex;
  justify-content: center;
  align-items: center;

.flipX a:hover span.cap {
  transform: rotateX(0);
  opacity: 1;
  transition-delay: 0.15s; /*移り変わる速さを変更したい場合はこの数値を変更*/

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

a {
  color: #333;
  text-decoration: none;

.lead {
  text-align: center;
  padding: 50px 20px;


img {
  width: 100%;
  height: auto;


.flipX {
  width: 70%;
  margin: 30px auto; /*中央揃え*/