Code pen

  1. CodePen Tips and Best Practice
  2. 15 Inspiring Examples of CSS Animation on CodePen
  3. How to Use CodePen
  4. 20 Codepen Solutions for Awesome Mouse Effects
  5. Using web fonts with CodePen
  6. 8 CodePen features you didn't know about


Download: Code pen
Size: 6.31 MB

CodePen Tips and Best Practice

by Michael Henderson CodePen Tips and Best Practice When working in Today, I am going to show you how to get the most out of CodePen and how to maximize your feedback within the FCC Forum. Get your sleeping bag and marshmallows. Oh, and don't forget to get your Yeti Cooler back from that bear who stole it while you were sleeping! We are going on a hike to learn a few things. Organizing Your Code In CodePen When working with CodePen for the first time I remember having all of my code in the HTML section of my Pen. Just like the image below I had my HTML, CSS, and content all in one spot. There is absolutely nothing wrong with building your website like this. But, in CodePen there are ways to clean up your code to make it more organized and readable by others who are helping you or simply checking out your awesome project. You can open this pen in another tab by clicking Let's Remove Some Things We do not need these pieces of code because CodePen automatically injects them into our project. Follow these steps to properly place your head content where it needs to go in CodePen. Let’s move our meta content and google font links to the Stuff For part of CodePen. Here is a snapshot of the code between the head tags. You should only move the code that I have in bold. Bootstrap Theme Company Page body ); $(window).scroll(function() { $(“.slideanim”).each(function(){ var pos = $(this).offset().top; var winTop = $(window).scrollTop(); if (pos 2. Paste it in the JavaScript sec...

15 Inspiring Examples of CSS Animation on CodePen

1. Pure CSS Watch Animation This is a lovely example of combining CSS transform (rotate and translate) to position the hands and the day/night indicator on a stylish watch face. 2. CSS Submarine Gorgeous use of the circular port-hole shaped container gives this CSS-animated submarine a lot of charm. 3. ASCII AT-AT Star Wars inspired AT-AT personnel carrier, drawn using text with the colours cycled in CSS. It's a funky image animation CSS found on CodePen. 4. SVG/CSS Loader This loader uses the changing colours to give the impression of rotating. It's a simple yet cool animation in CSS found on CodePen. 5. 3D CSS Tardis CSS can be used to create some amazing 3D effects. Here’s a 3D tardis animation found on CodePen: 6. Dozing Bird Simple art style and just the right amount of animation give this sleepy bird the illusion of life. 7. Pure CSS Border Animation Simple yet very effective use of CSS borders to create a loading-style animation. 8. Star Wars: The Force Awakens Star Wars: The Force Awakens in CSS by Donovan Hutchinson ( The newest trilogy from the Star Wars franchise has its detractors. But this animation using CSS, HTML and a little JavaScript should have nothing but fans. 9. 3D Synth Try out the keys and rotating this 3D synth animation created using CSS and shared on CodePen. Amazing work: 10. Cascading Solar System A model of our solar system, complete with scaled rotation speed, moons and details on each of the larger planets. The sun is even a live capture...

How to Use CodePen

CodePen is only for frontend projects and supports HTML, CSS, and JavaScript. If you need to build a project with a backend component, then you will need to use a different editor. In this article, I will discuss the following: • • • • • • • • How to sign up for a free account When you visit the • Twitter account • Facebook account • GitHub account You can also signup with an email address where you will create a username and password. Once you create the account, you should receive an email from CodePen. Open up that message and verify your email address. Differences between Pens and Projects Pens After verifying your email address, you should be taken straight to the Pen editor. If the editor does not show up, then you can click on Pen located on the left hand side of the homepage. A Pen editor is broken up into three sections of HTML, CSS and JavaScript. This editor does not support multiple HTML, CSS and JavaScript files. Pens are great for smaller scale creations. If you are looking to write more than 5,000 lines of code then you should consider a project instead. With the free account, you can have as many Pens as you like. Projects If you want to create a project, then click on Project, which is located at the top left hand corner of the home page. A project editor supports multiple HTML, CSS, and JavaScript files. With the free account, you can only have one project and 10 files. If you are interested in creating more projects, you will need to upgrade to the Pro a...

20 Codepen Solutions for Awesome Mouse Effects

Leading technologies, like WebGL, give a significant boost to some traditional elements that we are accustomed to believing ‘reach plateaux.’ As it turns out the standard state, such as hover, can have a new life full of dynamics, adventures, and unexpected twists that have a beneficial impact on the online audience. Paired with Today we have gathered 18 Codepens and two general solutions that are based on Hover Effects to Enhance User Experience 30,000 Particles by Justin Windle The name speaks for itself. This inspiring pen features 30 thousand particles that are densely packed and neatly arranged in a perfect rectangular shape. The playground reacts on mouse movements. Just cross it to see the effect in action. It also has the ability to return to its original state. Particles Random Moving in Canvas by -木马人- The canvas features dozens of particles that smoothly but chaotically move in various directions. Use your mouse to create links between two neighboring points. The solution is pretty popular nowadays: it can be seen in numerous creative websites and even in regular corporate ones. SVG clip-path Hover Effect by Noel Delgado This idea can come in handy when you need to spice up galleries or grid-based displays of portfolio pieces. The author skillfully combines SVG and CSS transitions resulting in a pretty impressive fluid-like hover effect. Since this is just an experiment, it works only in the latest versions of Chrome, Opera and Safari. Mouse balls animation by R...

Using web fonts with CodePen

If you delete the project that you are using on CodePen or cancel your subscription, the fonts will no longer be available to any of the Pens which use that embed code. This includes your original Pen, as well as any Pens that were forked from it. The fallback fonts specified in the CSS will be applied in place of the custom web fonts. Language Navigation Language Navigation Choose a region Selecting a region changes the language and/or content on Adobe.com. • Asia Pacific • • • • • • • • • • • • • • • • • • • • • • • Americas • • • • • • • • • • • Europe, Middle East and Africa • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •

8 CodePen features you didn't know about

CodePen is like a Swiss Army knife for frontend developers, offering inspiration, a clean environment to experiment in and more.Everyone has a different approach to development, and there are a few key CodePen features that sometimes go unnoticed and could use a shout out. Here are eight features that you may have overlooked: 01. Preprocessors What might not be immediately obvious is that to make isolated development much easier and quicker for everyone, CodePen gives you instant access to alotof great preprocessors. There are four different HTML preprocessors you can use while creating and editing Pens: Markdown, HAML, Slim and Jade. These can be useful in writing more terse code; or perhaps you are working on projects in these languages and want to keep your examples consistent. Users also have access to JavaScript preprocessors (CoffeeScript, LiveScript, TypeScript and Babel), as well as CSS preprocessors (Less, Sass and SCSS, Stylus and the newer PostCSS). These canbe invaluable in helping you get going quickly, but are also a great resource if you’re looking to learn a new language. The ‘View compiled’ option enables you to write with a preprocessor and then see how it translates out once ithas beenpreprocessed. 02. Embed features When it comes to including code in your blog posts, articles and presentations, CodePen embeds are incredibly versatile, and have a few special features. All embeds have a theme that controls the style of the CodePen header, tabs and other d...