Finally, in chapter nineteen, John depicts Nicodemus as a bold follower of Jesus who is willing to proclaim his faith in broad daylight. It is after Jesus has been crucified. Nicodemus offers to provide 75 pounds worth of very expensive oils and myhrr in order to prepare Jesus body for burial. Nicodemus doesn't care what the authorities think anymore. He knows Jesus is someone incredibly special because his own life has been touched and changed by Jesus generosity.
Generosity begets generosity.
Hence, Nicodemus wants to lavish generosity upon Jesus, even in his death. I exaggerate to illustrate how much Jesus had come to mean to Nicodemus. Nicodemus wanted to return to Jesus some of the love that Jesus had shown not only him, but to so many others as well. Obviously, at least in Nicodemus mind, becoming a follower of Jesus was worth coming out of the cover of darkness to announce his love for Jesus in broad daylight. The story of Nicodemus is really our own story in so many ways.