4 Replies - 699 Views - Last Post: 10 March 2014 - 07:24 AM

#1 blpraveen  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 22-February 14

Keyframes Rules Dynamically add using jquery

Posted 22 February 2014 - 12:11 AM

I have used online jquery plugins css animate store functions to add keyframes through the jquery. I have put the code in the jsfiddle.

I am having issue with parsing the css and the get the name of the keyframe below is the code.

KeyframeRule Object

ERROR:keyText undefined
    var KeyframeRule = function(r) {	
		this.original = r;
		this.keyText = r.keyText;
		this.css = r.css();		
	};




Is This A Good Question/Topic? 0
  • +

Replies To: Keyframes Rules Dynamically add using jquery

#2 ArtificialSoldier  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 330
  • View blog
  • Posts: 1,202
  • Joined: 15-January 14

Re: Keyframes Rules Dynamically add using jquery

Posted 24 February 2014 - 10:18 AM

If it says that keyText is undefined, then that means that the object you are passing to the KeyframeRule function does not have a keyText property.

I don't get that far though, my browser shows a syntax error for your code in jsfiddle on line 48.
Was This Post Helpful? 0
  • +
  • -

#3 blpraveen  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 22-February 14

Re: Keyframes Rules Dynamically add using jquery

Posted 25 February 2014 - 01:23 AM

View PostArtificialSoldier, on 24 February 2014 - 10:18 AM, said:

shows a syntax error for your code in jsfiddle on line 48.

Thanks to replying.

I have copied the line of code. I want to know How to get all styles of a keyframe If the above method does not work.
Was This Post Helpful? 0
  • +
  • -

#4 ArtificialSoldier  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 330
  • View blog
  • Posts: 1,202
  • Joined: 15-January 14

Re: Keyframes Rules Dynamically add using jquery

Posted 25 February 2014 - 11:15 AM

I'm sure the animation library you linked to works fine if you use it correctly. If I compare the code on Github with your code on jsfiddle, it's not the same. You only use part of the code from Github. Where's the rest of it?
Was This Post Helpful? 0
  • +
  • -

#5 blpraveen  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 22-February 14

Re: Keyframes Rules Dynamically add using jquery

Posted 10 March 2014 - 07:24 AM

I customizing the plugin to include the function. I need to extract the style from the keyframe. I used the plugin as a reference to get the style.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1