Sachini Prasadika
Sachini Prasadika

Reputation: 33

How to Merge seperated JS file, CSS file and HTML file together?

I'm new to JavaScript. I need a CSS text animation to setup a part of my website. Here I found an attractive animation link is in the 3rd comment because stackoverflow doesn't allow me to put the link here (keep showing an error)

When I copy these HTML code, CSS code and JS code and create a webpage including them, It doesn't work properly. Actually no any animation.

How can I solve this to work?

Upvotes: 0

Views: 1243

Answers (2)

user7993717
user7993717

Reputation:

This is an Option :

  • Signup in the codepen.io
  • Goto your link
  • Click on the Export button at the right bottom corner
  • Select Export.zip
  • After download the zip file, unzip it
  • Open index.html and you'll see the result.
  • Check the code of index.html for the missing codes

Upvotes: 0

user8003769
user8003769

Reputation:

For javascript

Make script tag and copy all the JavaScript between it.

<script>...</script>

For css

Make a style tag and copy all the CSS between it.

<style>...</style>

And to fix your problems double check your code and see whether you are missing some library or not.

The codepen project us using jquery, font-awesome and other things. This will help you import some of them.

<script src="https://use.fontawesome.com/230e98b440.js"></script> <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">

Upvotes: 1

Related Questions