0

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?

11
  • you can use multiple <script> and <link> tags in HTML. Commented May 14, 2017 at 7:26
  • Press F12 on your browser to see what error you are getting.Are you including the necessary libraries? Commented May 14, 2017 at 7:26
  • The Link : codepen.io/JustusFT/pen/ENLZGJ Commented May 14, 2017 at 7:27
  • @Rafed Muhammad Yasir yes think they already included all the libraries. But I haven't check for any error in console. I'll check that Commented May 14, 2017 at 7:29
  • The JS is using jQuery. The html code shown there does not include it. Have you include the jQuery? Commented May 14, 2017 at 7:33

2 Answers 2

1

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">

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.