<?xml version="1.0" encoding="UTF-8"?> 
<rss version="2.0"
        xmlns:content="http://purl.org/rss/1.0/modules/content/"
        xmlns:wfw="http://wellformedweb.org/CommentAPI/"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:atom="http://www.w3.org/2005/Atom"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
        >
<channel>
  <title>asgaard</title>
  <description></description>
  <link>https://blog.asgaard.co.uk/2012/09/08/again-on-manipulating-css-pseudo-elements-with-jquery</link>
  <lastBuildDate>Wed, 13 May 26 06:03:16 +0000</lastBuildDate>
  <language>en</language>
  <count>1</count>
  <offset>0</offset>
      <item>
    <title>Pseudo elements&#039; CSS with jQuery</title>
    <link>https://blog.asgaard.co.uk/2012/09/08/again-on-manipulating-css-pseudo-elements-with-jquery</link>
    <pubDate>Sat, 08 Sep 12 15:18:12 +0000</pubDate>
    <guid>https://blog.asgaard.co.uk/2012/09/08/again-on-manipulating-css-pseudo-elements-with-jquery</guid>
    <description><![CDATA[
<p>
Further to what I wrote <a href='http://blog.asgaard.co.uk/2012/09/07/on-targeting-pseudo-elements-with-javascript-jquery'>yesterday</a> about this, I&#039;ve written a jQuery plugin to provide a nice interface to pseudo-element CSS changes. Basically it *kind of* allows you to target pseudo-elements for the sake of CSS manipulation. It looks something like this:
<p>
<pre>$('#element').pseudoCss(':before', 'background-color', 'red');</pre>
<p>
Check out the code from <a href='https://github.com/markwatkinson/jquery-pseudo-css' target='_blank'>GitHub</a>. The index.html contains documentation, which you should be able to see online via <a href='http://htmlpreview.github.com/?https://raw.github.com/markwatkinson/jquery-pseudo-css/master/index.html' target='_blank'>this link</a>.
<p>
Please do read the caveat section before you use it. It should work for most situations but it is inherently limited compared to $.css().[...]]]></description>
    <content:encoded><![CDATA[
<p>
Further to what I wrote <a href='http://blog.asgaard.co.uk/2012/09/07/on-targeting-pseudo-elements-with-javascript-jquery'>yesterday</a> about this, I&#039;ve written a jQuery plugin to provide a nice interface to pseudo-element CSS changes. Basically it *kind of* allows you to target pseudo-elements for the sake of CSS manipulation. It looks something like this:
<p>
<pre>$('#element').pseudoCss(':before', 'background-color', 'red');</pre>
<p>
Check out the code from <a href='https://github.com/markwatkinson/jquery-pseudo-css' target='_blank'>GitHub</a>. The index.html contains documentation, which you should be able to see online via <a href='http://htmlpreview.github.com/?https://raw.github.com/markwatkinson/jquery-pseudo-css/master/index.html' target='_blank'>this link</a>.
<p>
Please do read the caveat section before you use it. It should work for most situations but it is inherently limited compared to $.css().]]></content:encoded>
  </item>
  </channel>
</rss>